Commit Graph

879 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
ed4cf2d2d4 Wire in navigation key. 2021-04-14 09:26:58 -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
Dillon Kearns
384f9043dc Fix type. 2021-04-12 20:29:27 -07:00
Dillon Kearns
3af6666671 Use generated Route type in SharedTemplate type. 2021-04-12 17:36:18 -07:00
Dillon Kearns
06a9883c15 Remove references to Shared.PageView. 2021-04-12 16:54:08 -07:00
Dillon Kearns
0434c7ebec Use map function from Document. 2021-04-12 16:50:23 -07:00
Dillon Kearns
f375c97679 Extract SharedTemplate type in preparation for including it as generated code. 2021-04-12 16:46:08 -07:00
Dillon Kearns
e65556f265 Refactor a template. 2021-04-12 15:33:00 -07:00
Dillon Kearns
0939d02ce7 Update package-lock. 2021-04-12 15:32:49 -07:00
Dillon Kearns
e83dd9d2c3 Handle showing content JSON errors. 2021-04-11 19:50:48 -07:00
Dillon Kearns
7375e55d34 Handle showing errors with new await syntax. 2021-04-11 19:42:26 -07:00
Dillon Kearns
c7c0e78912 Fix showCompiling id name inconsistencies and show at correct time. 2021-04-11 16:26:22 -07:00
Dillon Kearns
83933495fa Wait for content json request to come back before applying HMR update. 2021-04-11 15:40:32 -07:00
Dillon Kearns
7a019036ec Use module.hot.apply API to update content json when the new app is ready to receive ports. 2021-04-11 15:35:02 -07:00
Dillon Kearns
d951d59afc Remove obsolete markdown stuff. 2021-04-10 14:13:44 -07:00
Dillon Kearns
edbadddf7f Remove obsolete images folder in favor of just static folder. 2021-04-10 14:06:48 -07:00
Dillon Kearns
3c952f2be5 Remove more references to pathkey. 2021-04-10 13:55:46 -07:00
Dillon Kearns
cf1d03a2bb Remove more instances of pathkey. 2021-04-10 13:51:39 -07:00
Dillon Kearns
81c523bad6 Remove more references to NoMetadata. 2021-04-10 13:26:19 -07:00
Dillon Kearns
da14d2e88f Goodbye PathKey! 👋 2021-04-10 13:00:26 -07:00
Dillon Kearns
f47d2b1ed6 Remove dependency on Pages module in more places. 2021-04-10 12:57:58 -07:00
Dillon Kearns
31a5f2d8f6 Remove more references to Pages module. 2021-04-10 12:37:06 -07:00
Dillon Kearns
e71c073d95 Remove some references to Pages.pages and Pages.images. 2021-04-10 12:32:37 -07:00
Dillon Kearns
12b36d964f No more PathKey for PagePath! 2021-04-10 10:33:26 -07:00
Dillon Kearns
b1b339010c Wait to apply HMR update so that Elm can receive port with updated contentJson. 2021-04-10 09:07:35 -07:00
Dillon Kearns
66e43cb71b Turn off syntax highlighthing for now to test out performance. 2021-04-10 08:00:07 -07:00
Dillon Kearns
a0622db69d Move hmr loading indicator code into hmr.js and out of Elm code. 2021-04-09 16:36:18 -07:00
Dillon Kearns
a6514b844f Serve assets with npm package that does streaming and mime type handling. Serve up some files from the file system for simlicity. 2021-04-09 12:00:24 -07:00
Dillon Kearns
d9391cee53 Only apply HMR updates when content.json is free of errors. 2021-04-08 18:42:05 -07:00
Dillon Kearns
332be32410 Simplify and reuse article data source helpers. 2021-04-08 13:54:55 -07:00
Dillon Kearns
29c61434f2 Wire in elm-pages data source errors to error overlay. 2021-04-08 06:38:29 -07:00
Dillon Kearns
4c641d69ee Add wrapping to error overlay. 2021-04-08 06:04:56 -07:00
Dillon Kearns
7cbcfedaf9 Show error overlays. 2021-04-07 19:48:52 -07:00
Dillon Kearns
3e2b699c1f Send elm compiler errors as JSON. 2021-04-07 17:37:49 -07:00
Dillon Kearns
685b65435b Run prettier on markdown file. 2021-04-07 12:17:23 -07:00
Dillon Kearns
3fd9c06674 Ignore file temporarily. 2021-04-07 08:23:13 -07:00
Dillon Kearns
978305765e Hot reloads for content.json. 2021-04-07 08:22:46 -07:00
Dillon Kearns
2695be218e Remove commented code. 2021-04-07 08:16:06 -07:00
Dillon Kearns
80a2ea26b6 Wire in initial HMR for elm.js code. 2021-04-06 18:26:24 -07:00
Dillon Kearns
c7d26520cd Temporarily use a hardcoded data source for the time API since the API is flaky and slow. 2021-04-06 13:03:04 -07:00
Dillon Kearns
745d714a44 Add render function to StaticResponses module. 2021-04-05 20:58:28 -07:00
Dillon Kearns
89650a4eb1 Merge branch 'serverless' into static-files
# Conflicts:
#	examples/docs/package-lock.json
#	examples/docs/src/Template/BlogIndex.elm
#	examples/docs/src/Template/Page.elm
#	generator/src/cli.js
#	netlify.toml
#	package-lock.json
#	package.json
#	src/Pages/Internal/Platform/Cli.elm
#	tests/BetaStaticHttpRequestsTests.elm
#	tests/StaticHttpRequestsTests.elm
2021-04-05 19:49:08 -07:00
Dillon Kearns
a481b0fdf0 Remove comment. 2021-04-05 17:15:27 -07:00
Dillon Kearns
e6d15a133d Render landing page view. 2021-04-05 17:03:10 -07:00
Dillon Kearns
1332bca27b Remove unused frontmatter. 2021-04-05 17:03:01 -07:00
Dillon Kearns
b7f204330c Move page. 2021-04-05 16:50:29 -07:00
Dillon Kearns
5e8a07aad6 Remove hardcoding. 2021-04-05 16:50:22 -07:00
Dillon Kearns
0ab2b9921b Unvendor elm-ui. 2021-04-05 16:18:08 -07:00
Dillon Kearns
c4cba9fcf0 Use node version 15. 2021-04-05 15:23:21 -07:00
Dillon Kearns
45b51ceb89 Remove obsolete build command from CLI. 2021-04-05 15:11:16 -07:00
Dillon Kearns
ca9765b62a Remove more webpack-related files. 2021-04-05 15:09:34 -07:00
Dillon Kearns
f79612fedf Update dependencies. 2021-04-05 14:44:56 -07:00
Dillon Kearns
c9c63b8a3b Remove webpack dependencies! 🎉 2021-04-05 14:44:43 -07:00
Dillon Kearns
6bc4c8aab0 Remove unused code. 2021-04-05 14:25:37 -07:00