Skip to content

Commit df22fa9

Browse files
authored
[code-infra] Publish docs from upstream (#47018)
1 parent b26d474 commit df22fa9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"build:clean": "rimraf .next && pnpm build",
88
"build-sw": "node ./scripts/buildServiceWorker.js",
99
"dev": "next dev",
10-
"deploy": "git push -f material-ui-docs master:latest",
10+
"deploy": "git fetch upstream master && git push -f material-ui-docs FETCH_HEAD:latest",
1111
"icons": "rimraf --glob public/static/icons/* && node ./scripts/buildIcons.js",
1212
"start": "serve ./export",
1313
"create-playground": "cpy --cwd=scripts playground.template.tsx ../../pages/playground --rename=index.tsx",

scripts/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
### Prerequisites
66

7-
1. Make sure you have added the `material-ui-docs` remote to deploy the documentation:
7+
1. Make sure you have added the `material-ui-docs` and `upstream` remotes to deploy the documentation:
88
```bash
9+
git remote add upstream https://github.com/mui/material-ui.git
910
git remote add material-ui-docs https://github.com/mui/material-ui-docs.git
1011
```
1112
2. Generate a GitHub Token at https://github.com/settings/personal-access-tokens/new and add it to your shell rc script (either `.bashrc` or `.zshrc`) as `GITHUB_TOKEN`.

0 commit comments

Comments
 (0)