docusaurus/packages/docusaurus-plugin-content-docs/src
Sébastien Lorber 8ebbc17c7b
fix(v2): fix title logic (meta vs heading) + ignore fixed anchor id syntax (#4688)
* parseMarkdownContentTitle should ignore {#my-anchor-id} syntax

* use frontMatter.title in priority for page meta title

* parseMarkdownString should ignore fixed anchor ids syntax

* docs: make the distinction between headingTitle + metaTitle more clear + add useful todo

* docs: make the distinction between headingTitle + metaTitle more clear + add useful todo

* writeHeadingIds should ignore top-level md title like "# Title"
=> we are not supposed to create anchor links for h1 headers

* update tests

* fix doc tests
2021-04-27 15:44:46 +02:00
..
__tests__ fix(v2): fix title logic (meta vs heading) + ignore fixed anchor id syntax (#4688) 2021-04-27 15:44:46 +02:00
client chore(v2): Fix more linter warnings (#4450) 2021-03-18 18:05:09 +01:00
markdown feat(v2): various markdown string parsing improvements/fixes (#4590) 2021-04-09 17:09:33 +02:00
theme/hooks chore(v2): Fix linter warnings (#4442) 2021-03-17 17:28:42 +01:00
cli.ts feat(v2): auto-generated sidebars, frontmatter-less sites (#4582) 2021-04-15 16:20:11 +02:00
constants.ts refactor(v2): docs plugin refactor (#3245) 2020-08-17 17:50:22 +02:00
docFrontMatter.ts fix(v2): accept empty/null custom_edit_url docs frontmatter for retrocompat (#4687) 2021-04-27 12:50:30 +02:00
docs.ts fix(v2): fix title logic (meta vs heading) + ignore fixed anchor id syntax (#4688) 2021-04-27 15:44:46 +02:00
globalData.ts feat(v2): doc navbar item type (#3539) 2020-10-07 14:42:24 +03:00
index.ts feat(v2): docs, make numberPrefixParser configurable, better defaults, minor breaking-changes (#4655) 2021-04-21 12:06:06 +02:00
lastUpdate.ts refactor(v2): docs plugin refactor (#3245) 2020-08-17 17:50:22 +02:00
numberPrefix.ts feat(v2): docs, make numberPrefixParser configurable, better defaults, minor breaking-changes (#4655) 2021-04-21 12:06:06 +02:00
options.ts feat(v2): docs, make numberPrefixParser configurable, better defaults, minor breaking-changes (#4655) 2021-04-21 12:06:06 +02:00
plugin-content-docs.d.ts refactor(v2): correct client types and type aliases (#4451) 2021-03-19 11:32:38 +01:00
props.ts feat(v2): provide doc sidebar_label through sidebars.js (#4500) 2021-03-26 15:11:21 +01:00
sidebarItemsGenerator.ts feat(v2): docs, make numberPrefixParser configurable, better defaults, minor breaking-changes (#4655) 2021-04-21 12:06:06 +02:00
sidebars.ts feat(v2): allow user to customize/enhance the default sidebar items generator (#4658) 2021-04-21 18:35:03 +02:00
slug.ts feat(v2): docs, make numberPrefixParser configurable, better defaults, minor breaking-changes (#4655) 2021-04-21 12:06:06 +02:00
translations.ts feat(v2): core v2 i18n support + Docusaurus site Crowdin integration (#3325) 2020-11-26 12:16:46 +01:00
types.ts feat(v2): allow user to customize/enhance the default sidebar items generator (#4658) 2021-04-21 18:35:03 +02:00
versions.ts feat(v2): auto-generated sidebars, frontmatter-less sites (#4582) 2021-04-15 16:20:11 +02:00