Sébastien Lorber
b464545629
fix: v3 admonitions should support v2 title syntax for nested admonitions ( #9535 )
...
Fix admonition title mdx v1 compat option when admonition is nested
2023-11-11 22:23:27 +01:00
Sébastien Lorber
f5ae537d3e
fix(theme): make warning a first-class admonition, and deprecate caution admonition ( #9308 )
2023-09-15 10:48:21 +02:00
Joshua Chen
cd61c7bddc
fix(core): handle single quotes inside file paths ( #9160 )
2023-07-21 15:16:10 +02:00
Sébastien Lorber
187e5aa218
feat: React 18 + automatic JSX runtime + build --dev ( #8961 )
2023-06-08 19:40:15 +02:00
Sébastien Lorber
bf913aea2a
feat: upgrade to MDX v2 ( #8288 )
...
Co-authored-by: Armano <armano2@users.noreply.github.com>
2023-04-21 19:48:57 +02:00
Sébastien Lorber
3adc4ea809
docs: blog + community + dogfood docs should use .mdx extension ( #8507 )
2023-01-04 19:59:56 +01:00
Martin Adamko
f3563ca23c
fix(theme-classic): polish admonition details, render title-only admonitions ( #8150 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-12-09 20:02:06 +01:00
Sébastien Lorber
d8c72fb32d
fix(docs,theme): auto-generated category index should not display unlisted content ( #8319 )
2022-11-10 18:31:01 +01:00
Jody Heavener
683ba3d2a0
feat(docs,blog,pages): add support for "unlisted" front matter - hide md content in production ( #8004 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-11-03 14:31:41 +01:00
Johan Fagerberg
6c8af03f51
fix(utils): remove non-ASCII limitation for path normalization ( #8137 )
2022-10-07 13:35:12 +02:00
Joshua Chen
e12a2efaeb
docs: normalize capitalization ( #7619 )
2022-06-15 13:04:33 +08:00
dpang314
4f26a1911a
feat(content-docs): last_update front matter ( #7461 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-06-01 16:27:58 +02:00
Joshua Chen
c4e92c89e8
fix(core): prevent 404 when accessing /page.html ( #7184 )
2022-04-22 17:44:11 +02:00
Jody Heavener
5fb0a2e274
feat(content-docs): draft docs excluded from build & sidebars ( #6457 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-04-13 18:02:05 +02:00
Joshua Chen
8a24d56783
fix(mdx-loader): allow image paths to be URL encoded ( #6792 )
2022-03-02 12:14:53 +01:00
Sébastien Lorber
44a65f3337
fix(theme-common): isSamePath should be case-insensitive ( #6758 )
2022-02-25 14:58:54 +01:00
Joshua Chen
051380aa4b
fix(content-docs): properly display collocated social card image ( #6744 )
...
* fix(content-docs): properly display collocated social card image
* oops
2022-02-23 18:21:22 +08:00
TheCatLady
665d164351
feat(content-docs): add custom props front matter ( #6619 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-02-09 17:04:07 +01:00
Joshua Chen
3573b5e4a9
fix(content-docs): render category with no subitems as a normal link ( #6495 )
2022-02-02 14:45:00 +01:00
Joshua Chen
3c58d7f027
feat(content-docs): allow explicitly disabling index page for generated category ( #6452 )
...
* feat(content-docs): allow explicitly disabling index page for generated category
* docs
* add test
2022-01-27 23:14:07 +08:00
Joshua Chen
24a895fbc5
feat(content-docs): expose isCategoryIndex matcher to customize conventions ( #6451 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-01-26 17:58:52 +01:00
Joshua Chen
45f1b819b5
feat(content-docs): displayed_sidebar front matter ( #5782 )
2022-01-19 16:00:42 +01:00
Sébastien Lorber
cfae5d0933
feat(content-docs): sidebar category linking to document or auto-generated index page ( #5830 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: Armano <armano2@users.noreply.github.com>
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2021-12-03 14:44:59 +01:00
Sébastien Lorber
31ad8c4def
fix(ideal-image): fix IdealImage in dev not handling ES import images properly ( #5760 )
2021-10-21 17:22:49 +02:00
Erick Zhao
c86dfbda61
feat(v2): allow specifying TOC max depth (themeConfig + frontMatter) ( #5578 )
...
* feat: add all TOC levels to MDX loader
* feat: add theme-level config for heading depth
* test: add remark MDX loader test
* fix: limit maxDepth validation to H2 - H6
* refactor: set default `maxDepth` using `joi`
* refactor: `maxDepth` -> `maxHeadingLevel
* refactor: invert underlying TOC depth API
* refactor: make TOC algorithm level-aware
* feat: add support for per-doc TOC heading levels
* feat: support document-level heading levels for blog
* fix: correct validation for toc level frontmatter
* fix: ensure TOC doesn't generate redundant DOM
* perf: simpler TOC heading search alg
* docs: document heading level props for `TOCInline`
* Update website/docs/guides/markdown-features/markdown-features-inline-toc.mdx
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
* docs: fix docs (again)
* create dedicated test file for heading searching logic: exhaustive tests will be simpler to write
* toc search: add real-world test
* fix test
* add dogfooding tests for toc min/max
* add test for min/max toc frontmatter
* reverse min/max order
* add theme minHeadingLevel + tests
* simpler TOC rendering logic
* simplify TOC implementation (temp, WIP)
* reverse unnatural order for minHeadingLevel/maxHeadingLevel
* add TOC dogfooding tests to all content plugins
* expose toc min/max heading level frontmatter to all 3 content plugins
* refactor blogLayout: accept toc ReactElement directly
* move toc utils to theme-common
* add tests for filterTOC
* create new generic TOCItems component
* useless css file copied
* fix toc highlighting className conflicts
* update doc
* fix types
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-09-29 11:19:11 +02:00
Isaac Philip
f9c79cbd58
feat: doc tags (same as blog tags) ( #3646 )
...
* [v2] tags to doc, same as tags to blog - [IN PROGRESS]
- Addition of plugin-content-docs
- Addition of DocTagsListPage in `docusaurus-theme-classic`
! Error exists for this commit towards the theme aspect and help required.
Commit towards #3434
* docs: make tags list page work
* temp: disable onBrokenLinks
* theme bootstrap: create DocTagsListPage
* DocTagsPage added and functionality too
- individual doc tag page added to show docs for that specific tag
* Added all Docs Tags Link
* add some shared tag utils
* move tag tests to _dogfooding
* fix type
* fix some tests
* fix blog test
* refactor blog post tags handling
* better yaml tag examples
* better dogfood md files
* refactor and factorize theme tag components
* finish DocTagDocListPage
* Extract DocItemFooter + add inline tag list
* minor fix
* better typings
* fix versions.test.ts tests
* add tests for doc tags
* fix tests
* test toTagDocListProp
* move shared theme code to tagUtils
* Add new theme translation keys
* move common theme code to tagUtils + add tests
* update-code-translations should handle theme-common
* update french translation
* revert add translation
* fix pluralization problem in theme.docs.tagDocListPageTitle
* add theme component configuration options
* add more tags tests
* add documentation for docs tagging
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-08-19 10:31:15 +02:00
Sébastien Lorber
bb825faf1c
fix: ability to link md files with relative paths when paths contain space ( #5270 )
...
* fix md linkify function when spaces in paths
* fix linkify
2021-08-02 18:02:01 +02:00