Commit Graph

987 Commits

Author SHA1 Message Date
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
Dillon Kearns
fb7c26a030 Add starting point for new landing page. 2021-05-12 16:33:26 -07:00
Dillon Kearns
f444ea357c Simplify case to fromResult. 2021-05-12 13:35:05 -07:00
Dillon Kearns
a23dab238b Rename fields. 2021-05-12 07:38:09 -07:00
Dillon Kearns
77e7bdf95d Update docs. 2021-05-12 07:28:44 -07:00
Dillon Kearns
82ed4fa57e Add minimal example boilerplate. 2021-05-11 20:11:49 -07:00
Dillon Kearns
3417c8992e Set stale-while-revalidate header. 2021-05-10 21:17:17 -07:00
Dillon Kearns
ab934b306a Update max-age time. 2021-05-10 20:24:46 -07:00
Dillon Kearns
f7f34e654b Use encoded path for screenshot URL so it works with caching (query params caused cache hits for different urls). 2021-05-10 15:58:29 -07:00
Dillon Kearns
a0fea1fdb6 Add cache-control header. 2021-05-10 15:40:43 -07:00
Dillon Kearns
4d982bddca Handle missing categories. 2021-05-10 15:22:03 -07:00
Dillon Kearns
10b63d31b8 Use screenshot serverless function instead of thum.io. 2021-05-10 15:21:54 -07:00
Dillon Kearns
0ac7fe2a05 Add puppeteer dependencies for screenshot function. 2021-05-10 15:17:10 -07:00
Dillon Kearns
ecefb3ec1f Add screenshot URL function. 2021-05-10 15:14:15 -07:00
Dillon Kearns
37b6d371f3 Clean up padding. 2021-05-10 14:00:52 -07:00
Dillon Kearns
1726126d86 Update padding. 2021-05-10 13:52:14 -07:00
Dillon Kearns
5c7e64b0fa Don't use target blank for navbar links. 2021-05-10 13:52:08 -07:00
Dillon Kearns
948487219b Use tailwind for showcase. 2021-05-10 13:48:20 -07:00
Dillon Kearns
dd8c67e3a9 Use tailwind for blog index. 2021-05-10 12:34:54 -07:00
Dillon Kearns
1fe616bb2d Show highlightable links in tailwind header. 2021-05-10 11:30:35 -07:00
Dillon Kearns
52e68ee0a6 Update header. 2021-05-10 11:21:29 -07:00
Dillon Kearns
612366cec5 Add tailwind header. 2021-05-09 21:36:46 -07:00
Dillon Kearns
45f69bd6ca Use fromResult helpers. 2021-05-09 09:58:36 -07:00
Dillon Kearns
05cb39ad30 Make sidebar stick to top of screen instead of scrolling with content. 2021-05-09 09:24:05 -07:00
Dillon Kearns
afe2dec343 Update heading markdown renderers. 2021-05-08 15:22:12 -07:00
Dillon Kearns
6c18c2de93 Add some more route examples. 2021-05-08 15:22:00 -07:00
Dillon Kearns
8686b56943 Pass in htmlToString function to API Routes. 2021-05-08 14:52:56 -07:00
Dillon Kearns
b0ac40cb2e Remove obsolete jest test suite. 2021-05-08 08:18:32 -07:00
Dillon Kearns
b38bec802a Remove http-server dev dependency. 2021-05-08 08:16:14 -07:00
Dillon Kearns
7551c792a5 Show blue hover text. 2021-05-08 08:07:01 -07:00
Dillon Kearns
daec15f446 Show docs menu based on mobile menu toggle state. 2021-05-07 18:19:24 -07:00
Dillon Kearns
a5c64869c8 Extract helper. 2021-05-07 14:25:49 -07:00
Dillon Kearns
784364cae2 Show next/previous names. 2021-05-07 14:23:25 -07:00
Dillon Kearns
05024b818c Show previous/next sections using slugs for now in place of titles. 2021-05-07 13:47:02 -07:00
Dillon Kearns
83f6dba09e Use full parent width to make sure margin for markdown body has some space. 2021-05-07 13:37:19 -07:00
Dillon Kearns
b98cbea516 Use semibold only for current table of contents item (not all). 2021-05-07 13:04:05 -07:00
Dillon Kearns
e142b1c383 Include different roboto font weights. 2021-05-07 13:03:43 -07:00
Dillon Kearns
d58c962a56 Use normal-sized tailwind prose style. 2021-05-07 12:53:10 -07:00
Dillon Kearns
a8a68b6439 Add next/previous links with placeholder text for now. 2021-05-07 11:05:20 -07:00
Dillon Kearns
1fc0635646 Update routing apiRoutes structure. 2021-05-07 10:51:29 -07:00
Dillon Kearns
a89b4af670 Include tailwind base styles in css instead of Elm for performance and smaller pre-rendered HTML. 2021-05-07 10:43:08 -07:00
Dillon Kearns
43cf3c73ba Update hover styling. 2021-05-07 10:30:00 -07:00
Dillon Kearns
ffcaabca77 Remove Site.apiRoutes, since it now lives in Api.elm. 2021-05-07 10:09:04 -07:00
Dillon Kearns
fd34117157 Remove debug statements. 2021-05-07 10:04:14 -07:00
Dillon Kearns
89684709a5 Style h2 headings for docs with anchor nav. 2021-05-07 10:00:14 -07:00
Dillon Kearns
a56b0198ef Add hover anchor icon. 2021-05-07 09:18:17 -07:00
Dillon Kearns
3611b5c475 Highlight current docs section. 2021-05-07 08:39:37 -07:00