on master help sign in
Edit and fix static-site-generation proposal
commit77b4ef27aa71b17677dce27e6c8cc058a5ce3f10 authorMike Osborne <mike@urbit.org> dateThu 30 Sep 2021, 12:51 (5 years ago) parent2246b1c
1 file changed+7−29
content/grants/static-site-generation.md+7−29
content/grants/static-site-generation.md+7−29
@@ -41,44 +41,22 @@ The third common use case we will build is rendering a listing of all blog posts
41414. He then clicks “Serve Page”, and his Publish Notebook is now rendered into static HTML and served at /justinblog.
42425. He then goes to the Groups app and finds his Justin Blog. He writes a new article, and publishes it, then edits one of his existing articles and publishes it. He sees the latest state reflected on his new static site.
4343
44−## Milestones
45−
46−Milestone 1 - Gall agent developed
47−
48−Estimated completion:
49−
50−Payment: 3 stars
51−
52−Build agent that has the build pipelines specified and watches for graph-store updates.
53−
54−Milestone 2 - HTML Template Examples
55−
56−Estimated completion:
57−
58−Payment: 1 star
59−
60−Build out the two rich HTML templates for Publish notebook data specified above in “use cases”
61−
62−Milestone 3 - Grid Tile Development
63−
64−Estimated completion:
65−
66−Payment: 1 star
67−
68−Build out a tile in Grid for managing these web blogs.
69−
70−Architecture:
71−One Gall agent: %static-blog
44+### Architecture: One Gall agent - %static-blog
7245
7346++on-init: On initial load, tells file-server that it wants to serve a webpage at /static-blog, and subscribes to /updates on %graph-store
47+
7448++on-load: n/a
49+
7550++on-poke: Receives pokes which allow one to A) associate a particular graph with a particular mark that will convert that graph to a static webpage, B) dissociate them once associated, C) serve a set of static webpages at a path to the public web, D) stop serving a set of static webpages at a path.
51+
7652++on-watch: Subscribe to the state of the application
53+
7754++on-peek: Read out the files of a particular static site, read out the set of associations
7855
79−Future Directions:
56+### Future Directions:
8057
8158- More marks can be built out that wrap the Sail generated from the graph-store -> html conversion and inject calls-to-action, payment links, and other forms of plugin content using Ford marks as a build pipeline
59+
8260- Other graph types can and should eventually be able to converted to static sites as well.
8361
8462## Milestones