Skip to content

Commit

Permalink
chore: Replace reactjs.org to ja.reactjs.org in configuration files (#8)
Browse files Browse the repository at this point in the history
* chore: Replace reactjs.org to ja.reactjs.org in configuration files

* feat: Change HTML lang from en to ja
  • Loading branch information
potato4d committed Feb 16, 2019
1 parent 397b93d commit bc347b1
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Expand Up @@ -6,7 +6,7 @@ Thank you for the PR! Contributors like you keep React awesome!
Please see the Contribution Guide for guidelines:
https://github.com/reactjs/reactjs.org/blob/master/CONTRIBUTING.md
https://github.com/reactjs/ja.reactjs.org/blob/master/CONTRIBUTING.md
If your PR references an existing issue, please add the issue number below
Expand Down
14 changes: 7 additions & 7 deletions README.md
@@ -1,6 +1,6 @@
# reactjs.org
# ja.reactjs.org

This repo contains the source code and documentation powering [reactjs.org](https://reactjs.org/).
This repo contains the source code and documentation powering [ja.reactjs.org](https://ja.reactjs.org/).

## Getting started

Expand All @@ -10,11 +10,11 @@ This repo contains the source code and documentation powering [reactjs.org](http
1. Node: any 8.x version starting with 8.4.0 or greater
1. Yarn: See [Yarn website for installation instructions](https://yarnpkg.com/lang/en/docs/install/)
1. A fork of the repo (for any contributions)
1. A clone of the [reactjs.org repo](https://github.com/reactjs/reactjs.org) on your local machine
1. A clone of the [ja.reactjs.org repo](https://github.com/reactjs/ja.reactjs.org) on your local machine

### Installation

1. `cd reactjs.org` to go into the project root
1. `cd ja.reactjs.org` to go into the project root
1. `yarn` to install the website's npm dependencies

### Running locally
Expand All @@ -26,11 +26,11 @@ This repo contains the source code and documentation powering [reactjs.org](http

### Guidelines

The documentation is divided into several sections with a different tone and purpose. If you plan to write more than a few sentences, you might find it helpful to get familiar with the [contributing guidelines](https://github.com/reactjs/reactjs.org/blob/master/CONTRIBUTING.md#guidelines-for-text) for the appropriate sections.
The documentation is divided into several sections with a different tone and purpose. If you plan to write more than a few sentences, you might find it helpful to get familiar with the [contributing guidelines](https://github.com/reactjs/ja.reactjs.org/blob/master/CONTRIBUTING.md#guidelines-for-text) for the appropriate sections.

### Create a branch

1. `git checkout master` from any folder in your local `reactjs.org` repository
1. `git checkout master` from any folder in your local `ja.reactjs.org` repository
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

Expand All @@ -51,7 +51,7 @@ The documentation is divided into several sections with a different tone and pur

1. `git add -A && git commit -m "My message"` (replacing `My message` with a commit message, such as `Fixed header logo on Android`) to stage and commit your changes
1. `git push my-fork-name the-name-of-my-branch`
1. Go to the [reactjs.org repo](https://github.com/reactjs/reactjs.org) and you should see recently pushed branches.
1. Go to the [ja.reactjs.org repo](https://github.com/reactjs/ja.reactjs.org) and you should see recently pushed branches.
1. Follow GitHub's instructions.
1. If possible, include screenshots of visual changes. A Netlify build will also be automatically created once you make your PR so other people can see your change.

Expand Down
2 changes: 1 addition & 1 deletion gatsby-config.js
Expand Up @@ -9,7 +9,7 @@
module.exports = {
siteMetadata: {
title: 'React: A JavaScript library for building user interfaces',
siteUrl: 'https://reactjs.org',
siteUrl: 'https://ja.reactjs.org',
rssFeedTitle: 'React',
rssFeedDescription: 'A JavaScript library for building user interfaces',
},
Expand Down
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -4,7 +4,7 @@
"version": "0.0.1",
"private": true,
"bugs": {
"url": "https://github.com/reactjs/reactjs.org"
"url": "https://github.com/reactjs/ja.reactjs.org"
},
"dependencies": {
"babel-eslint": "^8.0.1",
Expand Down Expand Up @@ -60,15 +60,15 @@
"node": ">8.4.0",
"yarn": "^1.3.2"
},
"homepage": "https://reactjs.org/",
"homepage": "https://ja.reactjs.org/",
"keywords": [
"gatsby"
],
"license": "CC",
"main": "n/a",
"repository": {
"type": "git",
"url": "git+https://github.com/reactjs/reactjs.org.git"
"url": "git+https://github.com/reactjs/ja.reactjs.org.git"
},
"scripts": {
"build": "gatsby build",
Expand Down
2 changes: 1 addition & 1 deletion src/html.js
Expand Up @@ -7,7 +7,7 @@ const JS_NPM_URLS = [
export default class HTML extends React.Component {
render() {
return (
<html lang="en" {...this.props.htmlAttributes}>
<html lang="ja" {...this.props.htmlAttributes}>
<head>
{JS_NPM_URLS.map(url => (
<link key={url} rel="preload" href={url} as="script" />
Expand Down
2 changes: 1 addition & 1 deletion src/site-constants.js
Expand Up @@ -7,7 +7,7 @@

// NOTE: We can't just use `location.toString()` because when we are rendering
// the SSR part in node.js we won't have a proper location.
const urlRoot = 'https://reactjs.org';
const urlRoot = 'https://ja.reactjs.org';
const version = '16.8.1';
const babelURL = 'https://unpkg.com/babel-standalone@6.26.0/babel.min.js';

Expand Down

0 comments on commit bc347b1

Please sign in to comment.