Comments (5)
Either way, I think .travis.yml
in stumptown-content
should see if the packaged stuff will work with the renderer. But when/if it does so, does it not matter which version of stumptown-renderer
gets used? We could just assume master
and do git clone https://github.com/mdn/stumptown-renderer
but that gives us no ability to land things in stumptown-renderer
gently.
If you're tracking stumptown-content
(e.g. you're VSCode) and don't care about MDN all of this linkage might just be confusing and weird. It also slightly violates the principle that one of the consumers is engrossed inside the stumptown-content
repo.
from yari.
The more I think about, the more I think we should consider a third-party approach.
We can build a piece of Python code that runs on Heroku and is triggered by Webhooks.
It can be informed when a pull request is made or updated and it can probably be informed when its CI test suite passes. Then, from there, it can do whatever it needs to do. Either way, somewhere someone needs to say "This version of stumptown-renderer works with this version of stumptown-content" or "This version of stumptown-content works with this version of stumptown-renderer".
from yari.
I've been thinking some more about this. Not so much about git submodules
but how we'd deploy.
What's clear is that deployment most probably means:
- Take a branch, run
make deployment-build
, and upload all the static assets and all the builtindex.html
files etc. to S3. - Create a CDN distribution in front of that S3 bucket.
- The ability to "get-or-create" S3 buckets and files and also get-or-create of CloudFront distributions.
- It should be triggered either as GitHub Webhooks or as a final step in some
.travis.yml
file. - Some ability to control whether to bother (e.g. don't build if only the README is edited or if it's a PR from an untrusted github user)
- Devs should be able to manually trigger builds from their laptops. Useful for debugging the tool itself and when working on some very experimental feature that isn't ready to be a PR under review.
Python has great tooling for building integrations with AWS. I.e. boto3
but it might be worth using Docker here to wrap up everything so then it doesn't matter what programming language we use.
Whatever it is we should wrap it up nicely. For example, imaging this at the bottom of a .travis.yml
file (assuming all the linting and stuff worked):
...
set -x
make deployment-build
pip install stumptown-deployer
stumptown-deployer --site=client/build --branch=$TRAVIS_BRANCH --publish-github-comment=$TRAVIS_GITHUB_PR_ID --on-error=$SENTRY_DSN
It could take care of everything. S3 buckets, syncing files (using threads!), posting a GitHub PR comment about the built website.
CC @escattone
from yari.
Also, suppose that stumtown-renderer
uses the strategy of dumping Kuma MySQL content to .json
files to provide the fallback when stumptown-content
hasn't made the conversion yet. If that's the case we should, from Kuma periodically, ship all of that to S3. That means the pseudo code above could be something like this instead:
set -x
export STUMPTOWN_LEGACY_DOCS=./kumadocs
stumptown-deployer synclegacycontent --destination=$STUMPTOWN_LEGACY_DOCS
make deployment-build # (it would now read from stumptown/packaged *and* from `$STUMPTOWN_LEGACY_DOCS` to build the whole site)
...
from yari.
Note-to-self: https://docs.google.com/document/d/1CCacU0MGVcJXLB0Fp0k8t6PNuWsFC6cLR3XeO1jiVQU/edit
from yari.
Related Issues (20)
- Main content scrolls when mouse is left of Navigation Sidebar HOT 5
- No Combinators navigation in CSS navigator HOT 1
- KumaScript does not add translations to page object HOT 3
- Page does not scroll to anchor once loaded in local dev env HOT 3
- A build process should validate against known tags HOT 7
- Failed to load browser compatibility table HOT 1
- Add Japanese translations in HTMLSidebar.ejs
- buildDocumentFromURL: no Prism grammar for 'js-nolint' found HOT 4
- Page redirection does not work HOT 6
- zh-cn search result page is broken HOT 1
- Duplicate `toc-entries` id HOT 1
- Add ability to hide/collapse left sidebar
- Defining `ts-jest` config under `globals` is deprecated
- Live samples use invalid width HOT 5
- Remove support for HTML content (index.html) HOT 3
- Code size has got disproportionately large HOT 4
- Browser compatibility should show release date and current stable version HOT 6
- Header Search HOT 1
- Swap out MathML stylesheet HOT 6
- Header in weird comic sans font HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yari.