Replace hard-coded links/text with siteConfig variables #488
Labels
difficulty: starter
Issues that are starter difficulty level, e.g. minimal tweaking with a clear test plan.
feature
This is not a bug or issue with Docusausus, per se. It is a feature request for the future.
good first issue
If you are just getting started with Docusaurus, this issue should be a good place to begin.
status: claimed
Issue has been claimed by a contributor who plans to work on it.
Is this a bug report?
No.
It's a PR proposal/RFC.
Have you read the Contributing Guidelines on issues?
Yes
Environment
(OS, Node, npm, yarn)
OS: Windows 8.1
Node: v6.10.3
npm: 3.10.10
Steps to Reproduce
docusaurus-init
.copyright:
orbaseUrl:
.website/pages/en/help.js
orwebsite/core/footer.js
(among others).Expected Behavior
Copyright inside footer and help link should be set to properties set in
siteConfig.js
.Actual Behavior
Copyright inside footer and help link are set to hard-coded defaults inside
website/pages/en/help.js
andwebsite/core/footer.js
.Proposal
Replace the hard-coded links and text blocks with variables accessing siteConfig (i e
this.props.config.copyright
) by default.This way new users won't be confused when the properties exposed in
siteConfig.js
aren't set on their personal builds.The text was updated successfully, but these errors were encountered: