diff --git a/examples/i18n/en.json b/examples/i18n/en.json deleted file mode 100644 index f7b3e9735e..0000000000 --- a/examples/i18n/en.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "localized-strings": { - "doc1": "Docusaurus", - "doc2": "The Second in a Series of Documents", - "doc3": "The Third in a Series of Documents", - "doc4": "Separate Sidebar Document 1", - "doc5": "Separate Sidebar Document 2", - "Docusaurus": "Docusaurus Guide", - "First Category": "Example Category 1", - "Second Category": "Example Category 2", - "previous": "Previous", - "next": "Continue Reading", - "Docs": "Docs", - "API": "API", - "GitHub": "GitHub", - "Help": "Help", - "Blog": "Blog" - }, - "tagline": "Tagline", - "pages-strings": { - "index": { - "My Tagline": "My Tagline", - "Try It Out": "Try It Out", - "Example Link": "Example Link", - "Example Link 2": "Example Link 2", - "This is the content of my feature": "This is the content of my feature", - "The content of my second feature": "The content of my second feature", - "These are features of this project": "These are features of this project", - "Talk about learning how to use this": "Talk about learning how to use this", - "Talk about trying this out": "Talk about trying this out", - "This is another description of how this project is useful": "This is another description of how this project is useful", - "This project is used by all these people": "This project is used by all these people", - "More \"Docusaurus\" Users": "More \"Docusaurus\" Users", - "Feature One": "Feature One", - "Feature Two": "Feature Two", - "Feature Callout": "Feature Callout", - "Learn How": "Learn How", - "Try it Out": "Try it Out", - "Description": "Description", - "Who's Using This?": "Who's Using This?" - }, - "help": { - "Learn more using the [documentation on this site.](/test-site/docs/en/doc1.html)": "Learn more using the [documentation on this site.](/test-site/docs/en/doc1.html)", - "Browse Docs": "Browse Docs", - "Ask questions about the documentation and project": "Ask questions about the documentation and project", - "Join the community": "Join the community", - "Find out what's new with this project": "Find out what's new with this project", - "Stay up to date": "Stay up to date", - "Need help?": "Need help?", - "This project is maintained by a dedicated group of people.": "This project is maintained by a dedicated group of people." - }, - "users": { - "Who's Using This?": "Who's Using This?", - "This project is used by many folks": "This project is used by many folks", - "Are you using this project?": "Are you using this project?", - "Add your company": "Add your company" - } - } -} diff --git a/examples/siteConfig.js b/examples/siteConfig.js index e599020bb8..46a3f6418b 100644 --- a/examples/siteConfig.js +++ b/examples/siteConfig.js @@ -7,8 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. */ -const fs = require("fs"); - /* List of projects/orgs using your project for the users page */ const users = [ { @@ -76,6 +74,11 @@ const siteConfig = { /* gaTrackingId: "" */ }; + +/* DO NOT EDIT BELOW THIS LINE */ + +const fs = require("fs"); + let languages; if (fs.existsSync("./languages.js")) { languages = require("./languages.js"); diff --git a/lib/build-files.js b/lib/build-files.js index 0b4a623595..bcc149e8b6 100644 --- a/lib/build-files.js +++ b/lib/build-files.js @@ -9,10 +9,11 @@ * of patent rights can be found in the PATENTS file in the same directory. */ -require('babel-register') ({ +require("babel-register")({ ignore: false, - "presets": ["react"] + plugins: [require("./server/translate-plugin.js")], + presets: ["react"] }); -const generate = require('./server/generate.js'); +const generate = require("./server/generate.js"); generate();