mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-29 00:47:03 +02:00
feat(v2): add showReadingTime and editUrl to the templates (#2541)
* Add mdx plugins * Apply suggestions from code review Co-Authored-By: Alexey Pyltsyn <lex61rus@gmail.com> * Update website/docs/markdown-features.mdx Co-Authored-By: Alexey Pyltsyn <lex61rus@gmail.com> * Update markdown-features.mdx * Update templates with new fields * Rebase * fix(v2): tests * Update docusaurus.config.js * Update docusaurus.config.js * Update docusaurus.config.js * Update docusaurus.config.js Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com> Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
This commit is contained in:
parent
5eba5f24a2
commit
c09835a762
2 changed files with 14 additions and 0 deletions
|
@ -84,9 +84,16 @@ module.exports = {
|
|||
{
|
||||
docs: {
|
||||
sidebarPath: require.resolve('./sidebars.js'),
|
||||
// Please change this to your repo.
|
||||
editUrl:
|
||||
'https://github.com/facebook/docusaurus/edit/master/website/',
|
||||
},
|
||||
blog: {
|
||||
showReadingTime: true,
|
||||
// Please change this to your repo.
|
||||
editUrl:
|
||||
'https://github.com/facebook/docusaurus/edit/master/website/blog/',
|
||||
},
|
||||
theme: {
|
||||
customCss: require.resolve('./src/css/custom.css'),
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue