-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
migrate frontend to docusaurus #9014
Merged
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
34bdb6d
delete loads of really important stuff that we definitely need
chris48s b293065
v basic MVP smoosh docusaurus PoC into repo
chris48s 20aea04
TODO
chris48s e6f9b0d
delete more really important stuff
chris48s 1cc9572
TODO
chris48s b8cb4d8
tidyup: use run-s
chris48s abf4bd4
don't redirect images used in frontend to raster proxy
chris48s 87f5b97
fix routing
chris48s d27370f
preserve the /endpoint link
chris48s 2d5fd7f
delete the blog (for now)
chris48s ece6472
content edits
chris48s 77b0343
appease the lint gods
chris48s 235d2b0
update danger rules
chris48s 1ecf949
remove placeholder
chris48s 956d617
cypress tests
chris48s ef74cbb
dockerhub --> ghcr
chris48s 3fe9470
Revert "dockerhub --> ghcr"
chris48s 65881f1
Merge branch 'master' into gatsby-docusaurus
chris48s e0004d5
downgrade lockfile format
chris48s d659e91
implement defs/BASE_URL
chris48s c99fdb2
fix e2e build
chris48s b38bd85
actually fix cypress tests
chris48s df46828
always run cypress tests on build
chris48s f1243e3
this never worked
chris48s 19a2080
add command for docusaurus:clear
chris48s 2931df6
delete more code we don't need any more
chris48s 2e2ee69
update ESLint/prettier config
chris48s 3adb7bd
delete unsused exports
chris48s 1cd61cd
documentation updates
chris48s 424c411
delete a fairly large chunk of our dependency tree
chris48s 25aab60
Merge branch 'master' into gatsby-docusaurus
chris48s fbf50a9
allow base_url as build arg to Dockerfile
chris48s bd43d07
fixup dockerfile
chris48s c4288f6
work out base url at runtime if not set
chris48s 2accfd2
remove gatsby monorepo from closebot
chris48s b2ff593
rename HomepageFeatures to homepage-features
chris48s ab3785b
Merge branch 'master' into gatsby-docusaurus
chris48s 5d6ff7e
Merge branch 'master' into gatsby-docusaurus
chris48s File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
implement defs/BASE_URL
- Loading branch information
commit d659e91d8cb6be03bc4606420ad40758b2858022
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When you run the built version of the docs (i.e:
npm run build
and serve it from scoutcamp), the website performs really well because it is just serving static HTML files.The dev server (with hot reload when you change the files and all that jazz) is a bit of a resource hog, especially the first time you start it. It does seem to get a bit better once docusaurus has cached some stuff, but your first experience of running
npm start
is likely to be a bit sluggish. I think the fact we have over 600 pages doesn't help but in general this is an acknowledged issue: facebook/docusaurus#4765 It is not great dev experience, but I can live with it. Its not an issue that will affect production. This was kinda true of gatsby too, but docusaurus is way worse. If it turns into a big pain point, we could consider having 2 variants of the dev server:docusaurus start
so you get hot reloads for the frontend) andnpm run build
and serves it from scoutcamp)For now I am going to ignore this issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The other possibility is that it might be possible to tweak webpack or use a different bundler. I don't think its a blocker though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just thinking this through a bit more..
If we think the performance of the webpack devserver is terrible, I think changing the default behaviour of
npm start
in dev to just compile the frontend and serve it with no watch on the frontend (but keep nodemon doing hot reloads for the backend) does not actually lose us very much. I've deleted almost all of the frontend code so there is less to watch :) I think it would be useful to get another opinion on the dev experience here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't think i'll have time today but i'll pull your branch down locally and give it a test drive soon