From 662d678bcedec76ee5c4a89333488663f3bfd455 Mon Sep 17 00:00:00 2001 From: Joel Marcey Date: Mon, 23 Apr 2018 15:51:07 -0700 Subject: [PATCH 1/2] Add docs for docs-based landing page (#596) Fixes #459 --- docs/getting-started-site-creation.md | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/docs/getting-started-site-creation.md b/docs/getting-started-site-creation.md index 40cf149d8b..560a8fe029 100644 --- a/docs/getting-started-site-creation.md +++ b/docs/getting-started-site-creation.md @@ -61,3 +61,35 @@ To create a fully functional site, you only need to do a few steps: yarn run start # or `npm run start` # navigate to http://localhost:3000 ``` + +## Special Customization + +### Docs Landing Page + +If you prefer to have your landing page be straight to your documentation, you can do this through a redirect. + +1. Remove the `index.js` file from the `website/pages` directory, if it exists. +1. Add a [custom static `index.html` page](guides-custom-pages.md#adding-static-pages) in the `website/static` folder with the following contents: + +```html + + + + + + + Your Site Title Here + + + If you are not redirected automatically, follow this link. + + +``` + +> You will get the `id` of the document to land on the `.md` metadata of that doc page. + +### Blog Only + +You can also use Docusaurus to host your [blog only](guides-blog.md#i-want-to-run-in-blog-only-mode). From 6860dec56176a03e49400bd21bed9b363e9c5e2d Mon Sep 17 00:00:00 2001 From: Joel Marcey Date: Mon, 23 Apr 2018 16:00:05 -0700 Subject: [PATCH 2/2] Remove a translate page from users page It was cutting off some text. --- website/pages/en/users.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/website/pages/en/users.js b/website/pages/en/users.js index c5f4f67ff1..e169372d3e 100644 --- a/website/pages/en/users.js +++ b/website/pages/en/users.js @@ -44,12 +44,10 @@ class Users extends React.Component {

Who is using Docusaurus?

- Docusaurus powers some of Facebook's popular{' '} open source projects . -

{fbShowcase}