Skip to content

fix Docusaurus v2 CircleCI/GH-pages deployment #2273

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

Merged
merged 4 commits into from
Oct 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
- restore_cache_checkout
- run_yarn
- run: yarn ci-check
- run: export NODE_OPTIONS=--max_old_space_size=4096
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A site build requires more than default node memory.

Deploy builds the site and use 4go. But tests workflow also build the site, so it should rather use 4go as well.

- run: yarn test
- run:
name: Check for missing index.html (build errors)
Expand Down
3 changes: 2 additions & 1 deletion website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ const users = require('./showcase.json');
module.exports = {
title: 'React Native',
tagline: 'A framework for building native apps using React',
organizationName: 'facebook',
projectName: 'react-native',
url: 'https://reactnative.dev',
baseUrl: '/',
projectName: 'react-native',
scripts: [
{
src:
Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"prepublish-gh-pages": "yarn sync-community-repos",
"publish-gh-pages": "docusaurus-publish",
"publish-gh-pages": "docusaurus deploy",
"ci-check": "yarn prettier:diff && node image-check.js",
"format:source": "prettier --write \"{core/**/*.js,src/**/*.js,static/js/**/*.js}\"",
"format:markdown": "prettier --write \"{../docs/*.md,versioned_docs/**/*.md,blog/**/*.md}\"",
Expand Down
Empty file added website/static/.nojekyll
Empty file.