Easy to maintain open source documentation websites.
Find a file
PA 1bf590ea2b fix(v1): fix page title render issue when referred by search result (#1869)
* fix(v1): Fix page title render issue when referred by search result

When Algolia DocSearch query finds a match for a page's title, it attempts to generate
a permalink. Because the page title element (`h1`) does not have an `id`, Algolia
generates uses the `id` from closes parent element. Because of this, the page title
scrolls to a position that is slightly overlayed by the fixed top navigation bar.

This fix sets an `id` for the page title so that the search result is able to generate
a more accurate permalink.

* Adjust css for handling post title to be on the top when referred by an anchor

The post title can sometimes be referred by an anchor using the "id" of that element.
In that case the title will be automatically be the first element within the viewport.
Since we have a header fixed at the top of the view port, the title becomes hidden or
not visible. That's why some css adjustments are needed so that if any user ends up
with a link to a page that is referring to the post title (i.e. auto generated anchor
link by algolia DocSearch).

The css code uses pseudo element `:before` to make the adjustments. Details on this
can be found in the following article:

https://css-tricks.com/hash-tag-links-padding/

* Adjust CSS so that different selectors are on separate lines
2019-11-18 11:07:02 -08:00
.circleci chore: download only enabled languages translation files 2019-07-26 23:07:04 +07:00
.github chore: automatically add labels to issues 2019-11-13 19:55:20 +07:00
admin docs(v1): remove exclusive language (#1961) 2019-11-11 14:06:54 -08:00
docs docs(v1): remove exclusive language (#1961) 2019-11-11 14:06:54 -08:00
packages fix(v1): fix page title render issue when referred by search result (#1869) 2019-11-18 11:07:02 -08:00
scripts misc: use /usr/bin/env bash to increase portability (#1923) 2019-11-03 22:29:16 +08:00
website docs(v2): misc updates (#2010) 2019-11-17 06:43:41 -08:00
website-1.x v2.0.0-alpha.35 2019-11-17 16:51:57 +07:00
.editorconfig Standardize editor configs for cross-platform development (#628) 2018-05-03 10:23:21 -07:00
.eslintignore refactor(v2): Convert sitemap plugin to TypeScript (#1894) 2019-10-27 14:44:53 +07:00
.eslintrc.js chore: bump dev dependencies (#1955) 2019-11-11 17:44:26 +07:00
.gitattributes Add .webp to .gitattributes for ignoring 2018-05-03 13:13:03 -07:00
.gitignore chore(v2): add lerna-changelog (#1952) 2019-11-09 00:58:56 +08:00
.prettierignore refactor(v2): Convert sitemap plugin to TypeScript (#1894) 2019-10-27 14:44:53 +07:00
.prettierrc refactor(v2): migrate core to Typescript ❄️🌀🐋 (#1494) 2019-05-20 09:59:04 -07:00
.watchmanconfig Add first set of docusaurus-build tests using Jest (#259) 2017-12-18 14:40:52 -08:00
babel.config.js chore: bump dev dependencies (#1955) 2019-11-11 17:44:26 +07:00
CHANGELOG-2.x.md chore(v2): changelog 2019-11-17 16:51:02 +07:00
CHANGELOG.md docs(v1): fix links in CHANGELOG (#1931) 2019-11-02 08:12:52 +08:00
CODE_OF_CONDUCT.md Update CODE_OF_CONDUCT.md 2018-07-31 19:49:46 -07:00
CONTRIBUTING.md docs(v1): remove exclusive language (#1961) 2019-11-11 14:06:54 -08:00
crowdin.yaml chore: download only enabled languages translation files 2019-07-26 23:07:04 +07:00
jest.config.js fix(v2): docs plugin stability improvement (100% test coverage) (#1912) 2019-10-29 23:59:27 +08:00
lerna.json v2.0.0-alpha.35 2019-11-17 16:51:57 +07:00
LICENSE The complete move to MIT license (#115) 2017-10-05 11:14:49 -07:00
LICENSE-docs Docusaurus documentation license (#118) 2017-10-06 12:59:01 -07:00
package.json chore(v2): update dependencies (#1985) 2019-11-13 23:04:13 +07:00
README.md docs(v1): remove exclusive language (#1961) 2019-11-11 14:06:54 -08:00
tsconfig.json refactor(v2): migrate core to Typescript ❄️🌀🐋 (#1494) 2019-05-20 09:59:04 -07:00
yarn.lock chore(v2): update dependencies (#1985) 2019-11-13 23:04:13 +07:00

Docusaurus

Docusaurus

npm version CircleCI status PRs Welcome Chat code style: prettier Tested with Jest Netlify Status

Introduction

Docusaurus is a project for easily building, deploying, and maintaining open source project websites.

  • Simple to Start Docusaurus is built to be easy to get up and running in as little time possible. We've built Docusaurus to handle the website build process so you can focus on your project.
  • Localizable Docusaurus ships with localization support via CrowdIn. Empower and grow your international community by translating your documentation.
  • Customizable While Docusaurus ships with the key pages and sections you need to get started, including a home page, a docs section, a blog, and additional support pages, it is also customizable as well to ensure you have a site that is uniquely yours.

Installation

Docusaurus is available as the docusaurus package on npm.

We have also released the docusaurus-init package to make getting started with Docusaurus even easier.

Contributing

We've released Docusaurus because it helps us better scale and supports the many OSS projects at Facebook. We hope that other organizations can benefit from the project. We are thankful for any contributions from the community.

Code of Conduct

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Contributing Guide

Read our contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to Docusaurus.

Beginner Friendly Bugs

To help you get your feet wet and get you familiar with our contribution process, we have a list of beginner friendly bugs that might contain smaller issues to tackle first. This is a great place to get started.

Contact

We have a few channels for contact:

  • Discord with two text channels:
    • #docusaurus-users for those using Docusaurus.
    • #docusaurus-dev for those wanting to contribute to the Docusaurus core.
  • @docusaurus on Twitter
  • GitHub Issues

Contributors

This project exists thanks to all the people who contribute. [Contribute].

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

License

Docusaurus is MIT licensed.

The Docusaurus documentation (e.g., .md files in the /docs folder) is Creative Commons licensed.