Commit Graph

1133 Commits

Author SHA1 Message Date
Dillon Kearns
f2d64df12e
Merge pull request #207 from danmarcab/fix/html-script-embedded-crash
Use jsesc instead of JSON.stringify to avoid JSON/HTML issues
2021-08-25 10:32:59 -07:00
Dillon Kearns
560c67f365 Use elmi-to-json --version to make sure it is installed before running elm-test. 2021-08-25 10:02:24 -07:00
Dillon Kearns
fbc15bdcd1 Update package-lock.json 2021-08-25 09:49:37 -07:00
Dillon Kearns
7145a25461
Linkify DataSource. 2021-08-24 09:05:04 -07:00
Dillon Kearns
5cba9538ba Change edit docs link to point to master branch. 2021-08-24 08:52:25 -07:00
Dillon Kearns
85bec30edd Update docs and MarkdownCodec plugin to latest elm-markdown. 2021-08-20 20:05:57 -07:00
Dillon Kearns
15f190072a Update escaping test. 2021-08-17 18:38:26 -07:00
Dillon Kearns
8ceeb4a30d Update end-to-end test output. 2021-08-15 12:07:32 -07:00
Dillon Kearns
f4e5eebf6a Add more to escaping test case. 2021-08-03 13:37:59 -07:00
Dillon Kearns
503036ca13 Only run diff on dist output. 2021-08-03 13:25:22 -07:00
Dillon Kearns
b3d5d65924 Add an end-to-end test setup for testing escaped HTML output. 2021-08-03 13:19:08 -07:00
Dillon Kearns
156f2ff26d Update sorting for blog posts. 2021-08-02 10:11:02 -07:00
Dillon Kearns
ea788cadc2 Fix typos. 2021-08-02 10:07:06 -07:00
Dillon Kearns
01bd903af9 Update description in post. 2021-08-02 07:13:34 -07:00
Dillon Kearns
7661bfb4e9 Update post. 2021-08-01 16:46:48 -07:00
Dillon Kearns
2eacd8323b Add v2 blog post. 2021-08-01 16:07:56 -07:00
Dillon Kearns
bbe33d4b52 Update examples and tests. 2021-08-01 10:25:38 -07:00
Dillon Kearns
87153f6a71 Update site copy. 2021-07-31 16:58:01 -07:00
Dillon Kearns
b78f8c008b Rename types in ApiRoute module. 2021-07-30 15:35:11 -07:00
Dillon Kearns
abee315d8e Fix order of ToC. 2021-07-30 10:43:32 -07:00
Dillon Kearns
c8ed2fb140 Get description from first paragraph when there is no description frontmatter field. 2021-07-30 10:43:14 -07:00
Dillon Kearns
7ebcd9f314 Fix reference. 2021-07-29 16:00:17 -07:00
Dillon Kearns
979fa5ce4c Stop using serverless route in example temporarily. 2021-07-29 14:17:32 -07:00
Dillon Kearns
99ae3e5ab6 Add generated file for cypress test run to gitignore. 2021-07-29 12:32:46 -07:00
Dillon Kearns
526f1b1256 Update example. 2021-07-29 09:48:25 -07:00
Dillon Kearns
780e78fe02 Update copy. 2021-07-28 17:08:03 -07:00
Dillon Kearns
74d8aa5fc2 Use position: sticky for navbar. 2021-07-28 15:40:58 -07:00
Dillon Kearns
58979ce3d8 Fix pokedex example. 2021-07-28 10:29:06 -07:00
Dillon Kearns
545acf2cb6 Fix compiler error. 2021-07-28 09:01:49 -07:00
Dillon Kearns
5747c2f030 Use Shared.Msg instead of extra layer of abstraction for sub-msg type. 2021-07-27 10:48:42 -07:00
Dillon Kearns
0a77ab5f04 Read path from the right spot for initial ContentCache data. 2021-07-26 11:17:39 -07:00
Dillon Kearns
1651ec8d13 Add DataSource to end-to-end example index route. 2021-07-26 08:45:53 -07:00
Dillon Kearns
0ba1848d46 Fix error in example. 2021-07-26 08:45:27 -07:00
Dillon Kearns
d865c20ccb Add cypress example for data sources. 2021-07-21 13:33:05 -07:00
Dillon Kearns
d81c5ad0d3 Add an end-to-end test example folder. 2021-07-21 13:29:45 -07:00
Dillon Kearns
6762719367 Add missing dependencies in example. 2021-07-21 12:08:12 -07:00
Dillon Kearns
b82e88cfa6 Add missing dependency to example. 2021-07-19 18:10:48 -07:00
Dillon Kearns
b252f29383 Add missing dependency in docs folder. 2021-07-15 09:03:48 -07:00
Dillon Kearns
96ca531ba7 Update package lock. 2021-07-12 17:44:46 -07:00
Dillon Kearns
e8f71e8eef Add missing dependency. 2021-07-12 17:44:35 -07:00
Dillon Kearns
0fe8147b13 Use worker threads for dev server. 2021-07-04 20:14:34 -07:00
Dillon Kearns
03996ef2ad Fix typos. 2021-06-26 09:03:04 -07:00
Dillon Kearns
241458a8e3 Update post. 2021-06-26 07:47:36 -07:00
Dillon Kearns
dc40ae1735 Add draft post. 2021-06-25 22:40:26 -07:00
Dillon Kearns
99ffa46800 Inline font in stylesheet. 2021-06-25 08:25:35 -07:00
Dillon Kearns
a92bd815c0 Add noopener. 2021-06-24 19:48:23 -07:00
Dillon Kearns
eb3ac3edb2 Remove unused imports. 2021-06-24 18:33:16 -07:00
Dillon Kearns
7ea50f02a2 Update docs. 2021-06-24 14:14:05 -07:00
Dillon Kearns
655465b323 Update docs. 2021-06-24 12:55:05 -07:00
Dillon Kearns
3510fe9797 Update meta description. 2021-06-24 12:15:30 -07:00
Dillon Kearns
cd8a445ef3 Add some annotations and remove some unused modules. 2021-06-24 11:59:51 -07:00
Dillon Kearns
6a0741bb75 Fix microlink URL. 2021-06-24 11:52:06 -07:00
Dillon Kearns
3a2a816bda Fix pokedex example. 2021-06-24 11:49:00 -07:00
Dillon Kearns
7bcb589125 Shorten URLs for docs image cards. 2021-06-24 11:43:29 -07:00
Dillon Kearns
7943d52e58 Update landing page. 2021-06-24 10:38:51 -07:00
Dillon Kearns
e8c57985e9 Fix spacing. 2021-06-24 10:15:45 -07:00
Dillon Kearns
91e341a4ac Update example. 2021-06-24 10:13:10 -07:00
Dillon Kearns
e6c2031737 Rename Page builder functions. 2021-06-24 10:05:16 -07:00
Dillon Kearns
fbdc5c9888 Use prefetch links for next/previous. 2021-06-24 09:55:12 -07:00
Dillon Kearns
aa0381c13d Fix bug where dev server didn't perform some andThen http requests. 2021-06-23 08:22:14 -07:00
Dillon Kearns
0e5356058a Add markdown helper function. 2021-06-23 08:22:14 -07:00
Dillon Kearns
5b6ad1d615 Change argument order to make function more pipeline-friendly. 2021-06-20 08:20:44 -07:00
Dillon Kearns
44d6811f71 Add helper for optimized markdown data source. 2021-06-20 08:18:56 -07:00
Dillon Kearns
66a38e11b7 Update example with dependencies. 2021-06-18 11:01:23 -07:00
Dillon Kearns
09bd2e982e Add distill helpers for codec packages. 2021-06-18 10:29:23 -07:00
Dillon Kearns
c2599426bc Bump elm-review CLI. 2021-06-18 09:02:11 -07:00
Dillon Kearns
5ecda98e2c Add a markdown codec. 2021-06-18 09:01:03 -07:00
Dillon Kearns
dd07e2ead1 Add distill function. 2021-06-17 10:06:13 -07:00
Dillon Kearns
432587ba05 Add some codecs. 2021-06-17 10:06:13 -07:00
Dillon Kearns
2fe09bb0eb Remove some commented code. 2021-06-17 10:06:13 -07:00
Dillon Kearns
b31b9e9c2a Add some type annotations. 2021-06-17 10:06:13 -07:00
Dillon Kearns
89d5ab85b0 Use shared data for table of contents instead of having a duplicate data source. 2021-06-17 10:06:13 -07:00
Dillon Kearns
79c284f6bd Fix typo. 2021-06-10 15:44:25 -07:00
Dillon Kearns
7650ec4651 Remove {} arguments in empty route params in Route type. 2021-06-10 15:09:27 -07:00
Dillon Kearns
b0a1737497 Update package-lock. 2021-06-08 09:54:21 -07:00
Dillon Kearns
00f1815b9d Update dependencies. 2021-06-04 20:02:25 -07:00
Dillon Kearns
d02c2f2b43 Update dependencies. 2021-06-04 19:34:41 -07:00
Dillon Kearns
24da7cdbf5 Update dependency. 2021-06-03 18:50:52 -07:00
Dillon Kearns
fb193dd8cb Remove unused dependencies. 2021-06-03 16:12:00 -07:00
Dillon Kearns
2177d2bf1d Use lowerCamelCase for field names. 2021-06-03 11:58:35 -07:00
Dillon Kearns
9f93efd75c Generate route patterns JSON file for use with adapter js. 2021-06-02 11:02:35 -07:00
Dillon Kearns
f5b0212952 Add a prototype of a netlify adapter script. 2021-06-02 10:02:03 -07:00
Dillon Kearns
52fabf8161 Try specific route redirect in DPR example. 2021-06-01 20:58:19 -07:00
Dillon Kearns
a3c67ba6c6 Handle <= 150 in pokedex. 2021-06-01 20:58:04 -07:00
Dillon Kearns
0d9e62c09b Update pokedex render function to send 404 status. 2021-06-01 19:31:38 -07:00
Dillon Kearns
895e699e6b Use fixed url for pokedex time. 2021-06-01 15:00:04 -07:00
Dillon Kearns
f398c9127b Change base URL for time endpoint. 2021-06-01 14:52:41 -07:00
Dillon Kearns
b88c767edf Try netlify builder for pokedex renderer. 2021-06-01 14:41:40 -07:00
Dillon Kearns
fc15cebc03 Show current time in pokemon response. 2021-06-01 14:38:03 -07:00
Dillon Kearns
2dc9561fa0 Update dependencies. 2021-06-01 14:26:31 -07:00
Dillon Kearns
7d210347f8 Add netlify.toml for pokedex example. 2021-06-01 14:21:10 -07:00
Dillon Kearns
57fdd80fda Rename folder. 2021-06-01 11:03:29 -07:00
Dillon Kearns
cc316d5cd7 Add pokedex detail page. 2021-06-01 10:57:08 -07:00
Dillon Kearns
d6e9bf3818 Add starting point for pokedex example. 2021-06-01 10:36:52 -07:00
Dillon Kearns
d55823a217 Update example. 2021-06-01 09:29:12 -07:00
Dillon Kearns
cf92e7d268 Decode description for docs sections. 2021-05-31 20:48:33 -07:00
Dillon Kearns
67420d5b43 Add description field for docs in preparation for improving og:description fields. 2021-05-31 20:10:23 -07:00
Dillon Kearns
5bf31974c8 Update docs and re-order API to have filePaths last for better composability. 2021-05-29 15:30:44 -07:00
Dillon Kearns
9a0dd86919 Try a new File API. 2021-05-29 13:42:57 -07:00
Dillon Kearns
43509610d2 Update landing page. 2021-05-29 12:49:57 -07:00
Dillon Kearns
a6ea11240f Update some placeholder strings. 2021-05-29 11:42:43 -07:00
Dillon Kearns
f4dde522fb Update docs. 2021-05-29 11:23:47 -07:00
Dillon Kearns
0aacec2402 Update docs. 2021-05-29 10:50:58 -07:00
Dillon Kearns
d3efa4031b Update docs. 2021-05-29 09:58:37 -07:00
Dillon Kearns
1fa3bd8915 Update docs. 2021-05-29 09:52:40 -07:00
Dillon Kearns
d81a3777fb Update style. 2021-05-28 20:32:25 -07:00
Dillon Kearns
84933cfd69 Update docs and rename File.request -> File.read. 2021-05-28 14:00:51 -07:00
Dillon Kearns
cc6a3c3ebf Update docs. 2021-05-28 12:06:39 -07:00
Dillon Kearns
794da4bf06 Provide more general expectUniqueMatch instead of expectUniqueFile, and add doc comment. 2021-05-27 16:36:00 -07:00
Dillon Kearns
44030d0d0b Use new captureFilePath. 2021-05-27 11:08:25 -07:00
Dillon Kearns
4eeb6061e4 Url encode section titles for image cards. 2021-05-24 21:54:46 -07:00
Dillon Kearns
01be4dec58 Add image cards for docs pages SEO. 2021-05-24 21:46:38 -07:00
Dillon Kearns
2e1cfbdb36 Add a no TODO rule. 2021-05-24 21:13:51 -07:00
Dillon Kearns
91b109602a Replace some SEO TODOs. 2021-05-24 21:13:45 -07:00
Dillon Kearns
0ad5369d29 Simplify a Page Module. 2021-05-24 21:13:31 -07:00
Dillon Kearns
0e830074dc Address review errors. 2021-05-24 20:51:40 -07:00
Dillon Kearns
490f0bc3eb Add review config. 2021-05-24 20:46:36 -07:00
Dillon Kearns
d338a01f1f Apply review fixes. 2021-05-24 20:46:28 -07:00
Dillon Kearns
acde47a194 Change screenshot service. 2021-05-24 17:53:19 -07:00
Dillon Kearns
a885a36ed1 Update screenshot endpoint to lookup by airtable record id. 2021-05-24 15:27:40 -07:00
Dillon Kearns
6b43ab8333
Update 04-file-structure.md 2021-05-24 14:19:14 -07:00
Dillon Kearns
86c3dac0fa Move generated browser-elm.js to an already ignored path. 2021-05-24 12:23:01 -07:00
Dillon Kearns
1fc19583a2 Update example. 2021-05-24 12:09:57 -07:00
Dillon Kearns
959487cda0 Wire up SharedModel and reconfigure some of the Page builder API. 2021-05-24 12:01:17 -07:00
Dillon Kearns
2ac7dd0b24 Wire up PageUrl. 2021-05-24 11:17:34 -07:00
Dillon Kearns
3059310ef8 Update some dependencies. 2021-05-23 16:00:36 -07:00
Dillon Kearns
5e8f7951d6 Remove more references to ImagePath. 2021-05-23 15:30:22 -07:00
Dillon Kearns
89aaa4a764 Fix repos example. 2021-05-23 15:26:02 -07:00
Dillon Kearns
04ee10c17a Remove ImagePath module. 2021-05-23 15:16:54 -07:00
Dillon Kearns
33ccb1c97d Remove remaining references to ImagePath. 2021-05-23 15:15:40 -07:00
Dillon Kearns
48dabe8673 Add Pages.Url and replace ImagePath with Pages.Url.Url type. 2021-05-23 15:11:46 -07:00
Dillon Kearns
39821a60bb Remove more references to PagePath. 2021-05-23 11:12:38 -07:00
Dillon Kearns
51066fbe80 Fix types in routing example. 2021-05-23 11:03:54 -07:00
Dillon Kearns
4f0f03145b Fix types in slides example. 2021-05-23 11:01:44 -07:00
Dillon Kearns
a2bd42f617 Use Path instead of PagePath in Manifest API. 2021-05-23 10:53:01 -07:00
Dillon Kearns
dd70e0ae8c Replace some instances of PagePath with Path. 2021-05-23 10:43:53 -07:00
Dillon Kearns
366ca7ab80 Generate routeToPath without Maybe. 2021-05-23 10:20:09 -07:00
Dillon Kearns
d908d8d01c Rename Document -> View. 2021-05-23 09:00:20 -07:00
Dillon Kearns
2d69c67dec Pass in DataSource with all routes to API Routes for use in generating files like Sitemap. 2021-05-22 18:56:16 -07:00
Dillon Kearns
3401de3da4 Add rss feed file in api routes. 2021-05-22 11:53:14 -07:00
Dillon Kearns
50c4c6d682 Vendor elm-html-in-elm in preparation for fixing text node HTML escaping. 2021-05-21 09:20:54 -07:00
Dillon Kearns
d2b2408d31 Rename Glob.ignore -> Glob.match. 2021-05-19 18:20:47 -07:00
Dillon Kearns
bd4a9de2c4 Add missing parameter in example repo. 2021-05-19 07:59:39 -07:00
Dillon Kearns
e6dee3ea85 Update docs. 2021-05-18 11:39:47 -07:00
Dillon Kearns
583ab7603e Update docs. 2021-05-18 11:33:36 -07:00
Dillon Kearns
29aefaf9c3 Update docs. 2021-05-18 11:23:49 -07:00
Dillon Kearns
fff155bc21 Generate files in .elm-pages instead of gen. Fixes #165. 2021-05-18 11:04:56 -07:00
Dillon Kearns
1aa737c431 Rename static/ -> public/. 2021-05-18 10:44:30 -07:00
Dillon Kearns
c63291fd6d Add edit url in docs. 2021-05-17 20:39:41 -07:00
Dillon Kearns
9585e41d9a Clear glob cache entries when file paths change. 2021-05-17 17:15:04 -07:00
Dillon Kearns
ddbafa19d7 Extract view helper. 2021-05-17 17:02:23 -07:00
Dillon Kearns
95967ebcfe Add SEO example to landing page. 2021-05-17 16:59:18 -07:00
Dillon Kearns
a63e6a2b1f Rename field. 2021-05-17 16:36:49 -07:00
Dillon Kearns
7a861c6ec7 Add newline for formatting. 2021-05-17 16:16:46 -07:00
Dillon Kearns
c4b9f58e07 Change icon. 2021-05-17 16:16:40 -07:00
Dillon Kearns
5d0ee3d2c2 Add projects data source example to landing page. 2021-05-17 14:50:40 -07:00
Dillon Kearns
f32e3bc53b Remove unused. 2021-05-17 13:53:15 -07:00
Dillon Kearns
ee82665145 Extract parameters to landing page helper. 2021-05-17 13:48:23 -07:00
Dillon Kearns
87cf5b217a Extract section and use single column view even in large breakpoint for landing page code examples. 2021-05-17 13:39:43 -07:00
Dillon Kearns
b33079eb71 Update examples. 2021-05-17 13:22:37 -07:00
Dillon Kearns
82e0d34afd Add flags. 2021-05-17 12:51:04 -07:00
Dillon Kearns
a9332526c8 Update title in docs head tags. 2021-05-16 11:42:12 -07:00
Dillon Kearns
d3c14ef976 Fix renamed field in example. 2021-05-16 10:18:48 -07:00
Dillon Kearns
23d1150632 Fix error in slides example. 2021-05-16 10:15:40 -07:00
Dillon Kearns
be1e344332 Remove scaffold example. 2021-05-16 10:07:26 -07:00
Dillon Kearns
b2e37861dc Remove unused dependencies in template. 2021-05-15 21:30:45 -07:00
Dillon Kearns
62a7399074 Move SiteConfig to copied files. 2021-05-15 20:38:29 -07:00
Dillon Kearns
62675b6a16 Move SharedTemplate to copied gen folder. 2021-05-15 20:07:11 -07:00
Dillon Kearns
33a10ede33 Add Route.link and Route.toLink helpers. 2021-05-15 10:36:34 -07:00
Dillon Kearns
d2bf1e1204 Add a prefetch attribute. 2021-05-14 19:33:52 -07:00
Dillon Kearns
e308b38534 Rename function and simplify pipeline. 2021-05-14 19:33:27 -07:00
Dillon Kearns
1486ad2a29 Add content-length to image and make sure it's base-64 encoded. 2021-05-14 14:54:28 -07:00
Dillon Kearns
c929566208 Add png content-type in screenshot function. 2021-05-14 14:39:41 -07:00
Dillon Kearns
954136f380 Use url with redirect name for screenshot in cloudinary write-through. 2021-05-14 14:27:31 -07:00
Dillon Kearns
c6e7f18caf Add process url function. 2021-05-14 14:15:55 -07:00
Dillon Kearns
d86d96b59d Remove unused files. 2021-05-14 13:39:53 -07:00
Dillon Kearns
482cf2c12a Remove unused files. 2021-05-14 12:49:22 -07:00
Dillon Kearns
e2df10ee2e Remove italics in code theme. 2021-05-14 12:13:14 -07:00
Dillon Kearns
f115e1e57e Increase color contrast. 2021-05-14 12:05:32 -07:00
Dillon Kearns
3dba33a9e6 Override tailwid backticks in code spans. 2021-05-14 12:01:57 -07:00
Dillon Kearns
20038d75b1 Remove unused fonts and styles. 2021-05-14 11:36:12 -07:00
Dillon Kearns
b0a17335d0 Update blog post view. 2021-05-14 10:58:50 -07:00
Dillon Kearns
3eef5a6feb Apply elm-review fixes. 2021-05-14 09:49:44 -07:00
Dillon Kearns
e30b8d3335 Remove elm-ui dependency in docs site. 2021-05-14 09:46:02 -07:00
Dillon Kearns
ac5ef1857c Remove unused view variant. 2021-05-14 09:39:09 -07:00
Dillon Kearns
4f2794d563 Add html handlers for tailwind renderer. 2021-05-14 09:37:13 -07:00
Dillon Kearns
194c0d56e6 Move blog page to tailwind view. 2021-05-14 09:30:04 -07:00
Dillon Kearns
e39cdcb826 Use fromResult. 2021-05-14 08:10:59 -07:00
Dillon Kearns
d494698eaa Fix current page link highlighting. 2021-05-14 08:09:03 -07:00
Dillon Kearns
0bd66b867e Fix padding in table of contents. 2021-05-13 16:02:23 -07:00
Dillon Kearns
e684dccde3 Make table of contents toggleable in mobile for every page. 2021-05-13 15:50:28 -07:00
Dillon Kearns
bb94b94f14 Extract docs section. 2021-05-13 15:29:59 -07:00
Dillon Kearns
7091d75c92 Extract helpers to TableOfContents module. 2021-05-13 15:27:49 -07:00
Dillon Kearns
402cad1962 Update blog styling. 2021-05-13 15:05:43 -07:00
Dillon Kearns
07cc71ca8f Update docs button styling. 2021-05-13 12:55:59 -07:00
Dillon Kearns
9911113bc0 Update docs button style. 2021-05-13 11:13:50 -07:00
Dillon Kearns
b38cc7cb52 Don't linkify inner docs text in button. 2021-05-13 11:09:23 -07:00
Dillon Kearns
723a51ec94 Show docs sidebar button on mobile. 2021-05-13 11:05:22 -07:00
Dillon Kearns
373eb6fca2 Remove cover images from blog index. 2021-05-13 10:56:34 -07:00
Dillon Kearns
c4dd6a0f4e Update landing page. 2021-05-12 19:23:03 -07:00