mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-21 04:57:05 +02:00
Fix documentation link in help.js
However, we need to come up with a way to have /docs/ redirect correctly
This commit is contained in:
parent
deafdbde04
commit
2bc543852e
1 changed files with 2 additions and 4 deletions
|
@ -6,12 +6,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const React = require("react");
|
const React = require("react");
|
||||||
|
|
||||||
const CompLibrary = require("../../core/CompLibrary.js");
|
const CompLibrary = require("../../core/CompLibrary.js");
|
||||||
const Container = CompLibrary.Container;
|
const Container = CompLibrary.Container;
|
||||||
const GridBlock = CompLibrary.GridBlock;
|
const GridBlock = CompLibrary.GridBlock;
|
||||||
|
const siteConfig = require(process.cwd() + "/siteConfig.js");
|
||||||
// const siteConfig = require(process.cwd() + "/siteConfig.js");
|
|
||||||
|
|
||||||
class Help extends React.Component {
|
class Help extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
|
@ -19,7 +17,7 @@ class Help extends React.Component {
|
||||||
{
|
{
|
||||||
title: "Browse the docs",
|
title: "Browse the docs",
|
||||||
content:
|
content:
|
||||||
"Learn more about Docusaurus using the [official documentation](/docs/).",
|
`Learn more about Docusaurus using the [official documentation](${siteConfig.baseUrl}docs/${this.props.language}/installation.html).`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Twitter",
|
title: "Twitter",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue