Browse Source

Merge pull request #13 from yangshun/fix-repo-url

Migrate repo URLs
main
Brian Vaughn 7 years ago
committed by GitHub
parent
commit
574b3b0c24
  1. 4
      README.md
  2. 2
      content/docs/codebase-overview.md
  3. 2
      src/components/MarkdownPage/MarkdownPage.js

4
README.md

@ -26,7 +26,7 @@ This repo contains the source code and documentation powering [reactjs.org](http
### Create a branch ### Create a branch
1. `git checkout master` from any folder in your local react repository 1. `git checkout master` from any folder in your local `reactjs.org` repository
1. `git pull origin master` to ensure you have the latest main code 1. `git pull origin master` to ensure you have the latest main code
1. `git checkout -b the-name-of-my-branch` (replacing `the-name-of-my-branch` with a suitable name) to create a branch 1. `git checkout -b the-name-of-my-branch` (replacing `the-name-of-my-branch` with a suitable name) to create a branch
@ -53,4 +53,4 @@ This repo contains the source code and documentation powering [reactjs.org](http
## Troubleshooting ## Troubleshooting
- `yarn reset` to clear the local cache - `yarn reset` to clear the local cache

2
content/docs/codebase-overview.md

@ -66,7 +66,7 @@ The [fbjs repository](https://github.com/facebook/fbjs) exists because React sha
After cloning the [React repository](https://github.com/facebook/react), you will see a few top-level folders in it: After cloning the [React repository](https://github.com/facebook/react), you will see a few top-level folders in it:
* [`src`](https://github.com/facebook/react/tree/master/src) is the source code of React. **If your change is related to the code, `src` is where you'll spend most of your time.** * [`src`](https://github.com/facebook/react/tree/master/src) is the source code of React. **If your change is related to the code, `src` is where you'll spend most of your time.**
* [`docs`](https://github.com/facebook/react/tree/master/docs) is the React documentation website. When you change APIs, make sure to update the relevant Markdown files. * [`docs`](https://github.com/reactjs/reactjs.org/tree/master/content) is the React documentation website. When you change APIs, make sure to update the relevant Markdown files.
* [`fixtures`](https://github.com/facebook/react/tree/master/fixtures) contains a few small React test applications for contributors. * [`fixtures`](https://github.com/facebook/react/tree/master/fixtures) contains a few small React test applications for contributors.
* [`packages`](https://github.com/facebook/react/tree/master/packages) contains metadata (such as `package.json`) for all packages in the React repository. Nevertheless, their source code is still located inside [`src`](https://github.com/facebook/react/tree/master/src). * [`packages`](https://github.com/facebook/react/tree/master/packages) contains metadata (such as `package.json`) for all packages in the React repository. Nevertheless, their source code is still located inside [`src`](https://github.com/facebook/react/tree/master/src).
* `build` is the build output of React. It is not in the repository but it will appear in your React clone after you [build it](/docs/how-to-contribute.html#development-workflow) for the first time. * `build` is the build output of React. It is not in the repository but it will appear in your React clone after you [build it](/docs/how-to-contribute.html#development-workflow) for the first time.

2
src/components/MarkdownPage/MarkdownPage.js

@ -87,7 +87,7 @@ const MarkdownPage = ({
<div css={{marginTop: 80}}> <div css={{marginTop: 80}}>
<a <a
css={sharedStyles.articleLayout.editLink} css={sharedStyles.articleLayout.editLink}
href={`https://github.com/facebook/react/tree/master/docs/${markdownRemark href={`https://github.com/reactjs/reactjs.org/tree/master/content/${markdownRemark
.fields.path}`}> .fields.path}`}>
Edit this page Edit this page
</a> </a>

Loading…
Cancel
Save