Commit Graph

975 Commits

Author SHA1 Message Date
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
Dillon Kearns
dfda85e8ac Use new routing structure for fragment docs links. 2021-05-07 08:26:00 -07:00
Dillon Kearns
eea51f3860 Add type annotation. 2021-05-07 08:25:36 -07:00
Dillon Kearns
1299f19036 Use int instead of capture to match other glob pattern. 2021-05-07 08:19:19 -07:00
Dillon Kearns
46559dccf3 Get file based on section slug. 2021-05-07 08:00:50 -07:00
Dillon Kearns
2530056447 Render markdown body in section pages. 2021-05-07 07:37:23 -07:00
Dillon Kearns
0ccc875f8e Handle top-level /docs route in Section__ module. 2021-05-07 07:24:07 -07:00
Dillon Kearns
f5747608eb Fix top-level docs section links. 2021-05-07 06:34:25 -07:00
Dillon Kearns
3547d39376 Add docs section routing with table of contents. 2021-05-07 06:20:24 -07:00
Dillon Kearns
4ff0ea655c Update heading. 2021-05-07 06:19:56 -07:00
Dillon Kearns
4dbf1afc53 Add new docs markdown structure. 2021-05-06 20:28:56 -07:00
Dillon Kearns
eb3a981dbf Add tests for table of contents parser. 2021-05-06 16:20:04 -07:00
Dillon Kearns
1a687c238a Update docs style. 2021-05-06 14:26:44 -07:00
Dillon Kearns
74c56cdce2 Update docs style. 2021-05-06 14:18:04 -07:00
Dillon Kearns
34ba54d5d1 Update doc sidebar style based on nextra. 2021-05-06 14:10:50 -07:00
Dillon Kearns
b1393e0a94 Remove unused Http DataSource in slides. 2021-05-06 13:27:41 -07:00
Dillon Kearns
1663d434a1 Add Api module for slides project. 2021-05-06 13:25:41 -07:00
Dillon Kearns
efddae6bba Use standalone Api.elm module for ApiRoutes. 2021-05-06 10:08:12 -07:00
Dillon Kearns
f5287d3419 Remove unused. 2021-05-06 10:07:08 -07:00
Dillon Kearns
6cac9fd556 Rename import alias. 2021-05-06 09:48:08 -07:00
Dillon Kearns
f00fff90d9 Rename constructor argument in example. 2021-05-06 07:52:37 -07:00
Dillon Kearns
881cc7ccbe Add integer matcher in api routes. 2021-05-06 07:34:51 -07:00
Dillon Kearns
6fab76ab96 Rename ApiHandler -> ApiRoute. 2021-05-06 07:26:21 -07:00
Dillon Kearns
b16f32c1fa Rename field. 2021-05-06 07:16:05 -07:00
Dillon Kearns
4d175558ce Remove obsolete generateFiles. 2021-05-06 07:14:49 -07:00
Dillon Kearns
8de8dd0c71 Wire in allRoutes to ApiRoutes at build-time. 2021-05-06 07:02:42 -07:00
Dillon Kearns
e9779cf9a6 Handle not found API response with a hardcoded not found body and 200 status code for now. 2021-05-05 17:04:21 -07:00
Dillon Kearns
6435b69421 Rename function. 2021-05-05 14:35:49 -07:00
Dillon Kearns
7c90a2eb9a Use DataSouce for ApiHandler responses. 2021-05-04 20:11:08 -07:00
Dillon Kearns
16b15bf4a4 Wire in initial handling for api requests. 2021-05-04 10:37:37 -07:00
Dillon Kearns
b733dd9dc5 Try absolute path on netlify. 2021-04-29 07:33:55 -07:00
Dillon Kearns
4ddf97bb91 Render time with a netlify function. 2021-04-29 07:27:19 -07:00
Dillon Kearns
17553550b4 Put Glob under DataSource namespace. 2021-04-28 14:05:08 -07:00
Dillon Kearns
da4482f0f2 Run npm install in test script to make sure it has elm-pages setup. 2021-04-28 13:30:44 -07:00
Dillon Kearns
709d11ef6b Fuzz cat name in route test. 2021-04-28 13:04:20 -07:00
Dillon Kearns
a58dfd3a90 Handle optional splat routers. 2021-04-28 11:55:54 -07:00
Dillon Kearns
f2a212fc60 Handle splat routes. 2021-04-28 10:49:00 -07:00
Dillon Kearns
a0b12d16fd Remove unused function. 2021-04-28 08:35:31 -07:00
Dillon Kearns
5365e4b7dd Add route example with unit test. 2021-04-28 08:28:56 -07:00
Dillon Kearns
80ffd029eb Use new custom router. 2021-04-27 16:53:20 -07:00
Dillon Kearns
9e1f3b7b73 Add test case for new router prototype. 2021-04-27 08:35:07 -07:00
Dillon Kearns
5d8caf5d18 Update scaffold command. 2021-04-26 14:24:56 -07:00
Dillon Kearns
c7984cccfd Remove unused dependency. 2021-04-25 20:36:21 -07:00
Dillon Kearns
cf589a407b Run Regex matching in Elm for Glob module. 2021-04-25 19:39:54 -07:00
Dillon Kearns
5635566712 Add setup for elm-doc-preview. 2021-04-24 16:31:10 -07:00
Dillon Kearns
735bdeb2af Fix error in slides project. 2021-04-24 16:10:10 -07:00
Dillon Kearns
38d6b65477 Add serverless request Page builder. 2021-04-24 16:01:31 -07:00
Dillon Kearns
2b78dd89bc Add new Page builder API functions. 2021-04-24 12:47:22 -07:00
Dillon Kearns
b16d012670 Unexpose Shared.Msg variants. 2021-04-23 16:52:35 -07:00
Dillon Kearns
1c96c1d99a Remove unused exports. 2021-04-23 16:26:24 -07:00
Dillon Kearns
521c3c0cc7 Rename StaticData -> Data. 2021-04-23 16:22:23 -07:00
Dillon Kearns
559c4b6337 Rename top-level functions from template -> page. 2021-04-23 15:54:07 -07:00
Dillon Kearns
ba6a3c6af4 Rename Template modules -> Page modules. 2021-04-23 15:46:37 -07:00
Dillon Kearns
594888776b Add missing dependency to slides project. 2021-04-23 10:16:40 -07:00
Dillon Kearns
7a30435888 Remove completed TODO. 2021-04-23 08:57:57 -07:00
Dillon Kearns
eb6ccbc1ef Add a builder API for manifest configs. 2021-04-23 08:45:05 -07:00
Dillon Kearns
dd7ad0d88b Add lang tag to manifest. 2021-04-23 08:22:29 -07:00
Dillon Kearns
938bbd1014 Add language tag dependency to docs example. 2021-04-23 07:12:00 -07:00
Dillon Kearns
11267b5f62 Serve hmr.js from framework assets (not user static folder). 2021-04-22 21:25:02 -07:00
Dillon Kearns
7e07a7ce2f Rearrange definitions. 2021-04-22 20:22:16 -07:00
Dillon Kearns
a493dd280f Change import alias. 2021-04-22 14:14:18 -07:00
Dillon Kearns
d3b1fbad4a Remove unused page. 2021-04-22 14:02:10 -07:00
Dillon Kearns
d08d0e7ff0 Wire in static payload to init and update. 2021-04-22 11:31:06 -07:00
Dillon Kearns
267246aa79 Update docs. 2021-04-21 21:46:16 -07:00
Dillon Kearns
78f7b8d21f Update example. 2021-04-21 19:53:28 -07:00
Dillon Kearns
1086618efd Fix overflow wrapping. 2021-04-21 19:52:43 -07:00
Dillon Kearns
93f2fdc6ff Update docs. 2021-04-21 19:02:34 -07:00
Dillon Kearns
f7fec11543 Update table of contents view. 2021-04-21 18:09:43 -07:00
Dillon Kearns
b9b65fe82b Update code span color. 2021-04-21 18:03:03 -07:00
Dillon Kearns
11f440b09f Add nested table of contents module. 2021-04-21 17:27:00 -07:00
Dillon Kearns
09aad643e1 Update docs. 2021-04-21 15:43:30 -07:00
Dillon Kearns
0e19e08f93 Remove comment. 2021-04-21 14:04:10 -07:00
Dillon Kearns
c1c95294d7 Render table of contents in docs page. 2021-04-21 13:57:53 -07:00
Dillon Kearns
97838472ae Bump block levels. 2021-04-21 13:38:45 -07:00
Dillon Kearns
e7c1c35c42 Add starting point for pulling in docs pages. 2021-04-21 13:34:59 -07:00
Dillon Kearns
f890a48653 Handle 404 response for content.json with page render. 2021-04-21 06:09:26 -07:00
Dillon Kearns
f4197dd840 Fix off-by-one error in slides last page. 2021-04-21 06:05:04 -07:00
Dillon Kearns
fd852d9b8b Update stream url. 2021-04-20 20:11:26 -07:00
Dillon Kearns
e1b4d90087 Rename function. 2021-04-20 14:57:28 -07:00
Dillon Kearns
93d8572ddf Rename Pages.StaticFile -> DataSource.File. 2021-04-20 14:27:36 -07:00
Dillon Kearns
982d63ef86 Update start script. 2021-04-20 13:57:09 -07:00
Dillon Kearns
65e6ef52dd Rename glob functions with ignore/capture instead of drop/keep to make it more intuitive. 2021-04-20 13:53:53 -07:00
Dillon Kearns
a082d9e291 Move HTTP-related DataSource API under DataSource.Http. 2021-04-20 13:52:54 -07:00
Dillon Kearns
84abfb4b2b DataSource.Request -> DataSource.DataSource. 2021-04-20 07:45:35 -07:00
Dillon Kearns
47fccf2cca Rename StaticHttp to DataSource. 2021-04-20 07:33:12 -07:00
Dillon Kearns
03fc86e577 Remove access to static data for canonicalSiteUrl for now. 2021-04-17 21:43:22 -07:00
Dillon Kearns
1d973ab495 Add CLI for elm-pages build. 2021-04-17 15:04:24 -07:00
Dillon Kearns
8d47b85908 Rename cli.js to build.js. 2021-04-17 14:40:02 -07:00
Dillon Kearns
5b17b96883 Remove unused module. 2021-04-17 13:48:18 -07:00
Dillon Kearns
c93176ec54 Fix slide count. 2021-04-16 16:19:49 -07:00
Dillon Kearns
938cf07c4a Try package-lock.json with no optionals. 2021-04-16 10:05:38 -07:00
Dillon Kearns
311f6f04a6 Update package.json. 2021-04-16 09:45:01 -07:00
Dillon Kearns
c60875f89f Wire in StaticData for update in elm-pages.com site. 2021-04-15 13:40:36 -07:00
Dillon Kearns
9453b5fb41 Wire in staticData to update with some hardcoding and Debug.todos. 2021-04-15 10:23:01 -07:00
Dillon Kearns
d3a41a812e Delete temporary comments. 2021-04-15 08:14:44 -07:00
Dillon Kearns
0744a4f7e6 Update slides project. 2021-04-14 17:17:22 -07:00
Dillon Kearns
ac1535f5b9 Wire in navigation key from template connector module. 2021-04-14 15:57:12 -07:00
Dillon Kearns
36cf57d937 Fix error in slides index.js. 2021-04-14 15:56:36 -07:00
Dillon Kearns
c3a9299f27 Remove unused files. 2021-04-14 14:55:27 -07:00
Dillon Kearns
63fd3be299 Wire in syntax highlighting in slides example. 2021-04-14 09:58:35 -07:00
Dillon Kearns
ed4cf2d2d4 Wire in navigation key. 2021-04-14 09:26:58 -07:00
Dillon Kearns
e72bcd83b7 Add key press subscription in slide page. 2021-04-14 08:56:36 -07:00
Dillon Kearns
881e380a30 Wire in local state to slides template. 2021-04-14 08:40:40 -07:00
Dillon Kearns
8ae7b6689c Underline links in tailwind renderer. 2021-04-14 08:40:32 -07:00
Dillon Kearns
55711852ea Use a tailwind renderer. 2021-04-14 08:32:46 -07:00
Dillon Kearns
c6d09e3bdf Remove generated files. 2021-04-14 07:47:36 -07:00
Dillon Kearns
5df19c76a8 Remove more unused. 2021-04-14 07:47:00 -07:00
Dillon Kearns
60cb4da2f2 Remove unused. 2021-04-14 07:36:16 -07:00
Dillon Kearns
166563ae16 Add a slides example project. 2021-04-14 07:33:51 -07:00
Dillon Kearns
8de4fc7b12 Wire in sitemap using new SiteConfig. 2021-04-13 19:20:10 -07:00
Dillon Kearns
423e6de328 Wire in all Routes in SiteConfig. 2021-04-13 18:43:31 -07:00
Dillon Kearns
4744844dd1 Wire in manifest generator as just another file generator, but specified in the generated code. 2021-04-13 13:28:58 -07:00
Dillon Kearns
4e5c80ab91 Move definition. 2021-04-13 13:05:33 -07:00