Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: promote Docusaurus 2 usage #2126

Merged
merged 1 commit into from
Dec 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/getting-started-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ description: Docusaurus was designed from the ground up to be easily installed a

Docusaurus was designed from the ground up to be easily installed and used to get your website up and running quickly.

> **Important Note:** If you are setting up a new Docusaurus website for a Facebook Open Source project, we highly encourage you to use [Docusaurus 2](https://v2.docusaurus.io) instead.

## Installing Docusaurus

We have created a helpful script that will get all of the infrastructure set up for you:
Expand Down
12 changes: 7 additions & 5 deletions website-1.x/pages/en/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,14 @@ class Index extends React.Component {
<HomeSplash siteConfig={siteConfig} language={language} />
<div className="announcement">
<div className="announcement-inner">
We're working on{' '}
<a href="https://github.com/facebook/docusaurus/issues/789">
Docusaurus 2
If you don't need advanced features such as versioning or
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

versioning

This is no longer relevant, is it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think V2 versioning is battle tested yet

translations, try out
<a href="https://v2.docusaurus.io">Docusaurus 2</a> instead!
Contribute to its roadmap by suggesting features or{' '}
<a href="https://v2.docusaurus.io/feedback/">
giving feedback here
</a>
, contribute to its roadmap by suggesting features or giving
feedback <a href="https://v2.docusaurus.io/feedback/">here</a>!
!
</div>
</div>
<div className="mainContainer">
Expand Down
6 changes: 6 additions & 0 deletions website/docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ npx @docusaurus/init@next init my-website classic

If you do not specify `name` or `template`, it will prompt you for them. We recommend the `classic` template so that you can get started quickly and it contains features found in Docusaurus 1. The `classic` template contains `@docusaurus/preset-classic` which includes standard documentation, a blog, custom pages, and a CSS framework (with dark mode support). You can get up and running extremely quickly with the classic template and customize things later on when you have gained more familiarity with Docusaurus.

**Important Note:** If you are setting up a new Docusaurus website for a Facebook open source project, use the `facebook` template instead, which comes with some useful Facebook-specific defaults:

```bash
npx @docusaurus/init@next init my-website facebook
```

## Project structure

Assuming you chose the classic template and named your site `my-website`, you will see the following files generated under a new directory `my-website/`:
Expand Down