docusaurus/packages/docusaurus-theme-classic/src/theme
Sébastien Lorber db79d462ab
feat(v2): auto-generated sidebars, frontmatter-less sites (#4582)
* POC of autogenerated sidebars

* use combine-promises utility lib

* autogenerated sidebar poc working

* Revert "autogenerated sidebar poc working"

This reverts commit c81da980

* POC of auto-generated sidebars for community docs

* update tests

* add initial test suite for autogenerated sidebars + fix some edge cases

* Improve autogen sidebars: strip more number prefixes in folder breadcrumb + slugs

* fix typo!

* Add tests for partially generated sidebars + fix edge cases + extract sidebar generation code

* Ability to read category metadatas file from a file in the category

* fix tests

* change position of API

* ability to extract number prefix

* stable system to enable position frontmatter

* fix tests for autogen sidebar position

* renamings

* restore community sidebars

* rename frontmatter position -> sidebar_position

* make sidebarItemsGenerator fn configurable

* minor changes

* rename dirPath => dirName

* Make the init template use autogenerated sidebars

* fix options

* fix docusaurus site: remove test docs

* add _category_ file to docs pathsToWatch

* add _category_ file to docs pathsToWatch

* tutorial: use sidebar_position instead of file number prefixes

* Adapt Docusaurus tutorial for autogenerated sidebars

* remove slug: /

* polish the homepage template

* rename _category_ sidebar_position to just "position"

* test for custom sidebarItemsGenerator fn

* fix category metadata + add link to report tutorial issues

* fix absolute path breaking tests

* fix absolute path breaking tests

* Add test for floating number sidebar_position

* add sidebarItemsGenerator unit tests

* add processSidebars unit tests

* Fix init template broken links

* windows test

* increase code translations test timeout

* cleanup mockCategoryMetadataFiles after windows test fixed

* update init template positions

* fix windows tests

* fix comment

* Add autogenerated sidebar items documentation + rewrite the full sidebars page doc

* add useful comment

* fix code block title
2021-04-15 16:20:11 +02:00
..
AnnouncementBar refactor(v2): add more translatable strings (#4219) 2021-02-18 11:29:51 +01:00
BlogListPage chore(v2): update infima (#4370) 2021-03-09 14:58:05 +01:00
BlogListPaginator refactor(v2): add missing theme-classic types (#4385) 2021-03-12 12:19:19 +01:00
BlogPostItem refactor(v2): format post date using Intl (#4344) 2021-03-04 19:11:31 +01:00
BlogPostPage chore(v2): update infima (#4370) 2021-03-09 14:58:05 +01:00
BlogPostPaginator refactor(v2): add more translatable strings (#4219) 2021-02-18 11:29:51 +01:00
BlogSidebar refactor(v2): clean-ups and fixes (#4244) 2021-02-18 10:27:39 +01:00
BlogTagsListPage chore(v2): update infima (#4370) 2021-03-09 14:58:05 +01:00
BlogTagsPostsPage chore(v2): update infima (#4370) 2021-03-09 14:58:05 +01:00
CodeBlock feat(v2): auto-generated sidebars, frontmatter-less sites (#4582) 2021-04-15 16:20:11 +02:00
DocItem refactor(v2): format last updated date using Intl (#4352) 2021-03-05 15:30:09 +01:00
DocPage fix(v2): fit footer in viewport when content area is too small (#4311) 2021-03-04 15:39:15 +01:00
DocPaginator refactor(v2): add more translatable strings (#4219) 2021-02-18 11:29:51 +01:00
DocSidebar perf(v2): avoid rerender of sidebar items while scrolling (#4603) 2021-04-12 18:14:02 +02:00
DocVersionSuggestions feat(v2): Add Interpolate / interpolate APIs + complete theme translations (#4295) 2021-02-26 13:19:51 +01:00
EditThisPage refactor(v2): add more translatable strings (#4219) 2021-02-18 11:29:51 +01:00
Footer chore(v2): Fix linter warnings (#4442) 2021-03-17 17:28:42 +01:00
Heading refactor(v2): increase heading anchor offset (#4601) 2021-04-12 18:59:59 +02:00
IconArrow refactor(v2): add missing theme-classic types (#4385) 2021-03-12 12:19:19 +01:00
IconEdit refactor(v2): add missing theme-classic types (#4385) 2021-03-12 12:19:19 +01:00
IconLanguage refactor(v2): add missing theme-classic types (#4385) 2021-03-12 12:19:19 +01:00
IconMenu refactor(v2): add missing theme-classic types (#4385) 2021-03-12 12:19:19 +01:00
LastUpdated refactor(v2): add missing theme-classic types (#4385) 2021-03-12 12:19:19 +01:00
Layout refactor(v2): remove focus outline from mouse users (#3626) 2020-10-27 15:08:51 +03:00
LayoutHead fix(v2): use page title from config if not set (#4600) 2021-04-12 18:39:34 +02:00
LayoutProviders refactor(v2): add missing theme-classic types (#4385) 2021-03-12 12:19:19 +01:00
Logo refactor(v2): use Link component for external links (#4242) 2021-02-18 12:35:29 +01:00
MDXComponents fix(v2): render escaped HTML entities inside code properly (#4598) 2021-04-12 18:33:38 +02:00
MDXPage feat(v2): inline table-of-contents + refactor TOC (#3904) 2020-12-11 16:30:53 +01:00
Navbar refactor(v2): replace react-toggle with own implementation (#4608) 2021-04-15 16:15:07 +02:00
NavbarItem fix(v2): DocNavbarItem error message (#4554) 2021-04-02 17:07:41 +02:00
SearchMetadatas refactor(v2): add missing theme-classic types (#4385) 2021-03-12 12:19:19 +01:00
Seo fix(v2): use page title from config if not set (#4600) 2021-04-12 18:39:34 +02:00
SkipToContent chore(v2): Fix more linter warnings (#4450) 2021-03-18 18:05:09 +01:00
TOC refactor(v2): clean-ups and fixes (#4244) 2021-02-18 10:27:39 +01:00
TOCInline refactor(v2): add missing theme-classic types (#4385) 2021-03-12 12:19:19 +01:00
TabItem refactor(v2): render all tab panels at once (#3706) 2020-11-09 17:06:07 +01:00
Tabs fix(v2): select correct tab when items are incorrectly ordered (#4468) 2021-03-19 18:12:58 +01:00
ThemeProvider feat(v2): Provide typing to most of the theme-classic components (#3348) 2020-08-28 12:06:37 +02:00
ThemedImage feat(v2): themed logo in footer (#3993) 2021-01-06 16:10:44 +01:00
Toggle refactor(v2): replace react-toggle with own implementation (#4608) 2021-04-15 16:15:07 +02:00
UserPreferencesProvider feat(v2): Provide typing to most of the theme-classic components (#3348) 2020-08-28 12:06:37 +02:00
hooks fix(v2): fail-safe usage of browser storage (localStorage/sessionStorage) when access is denied (#4501) 2021-04-13 12:38:12 +02:00
NotFound.tsx feat(v2): Extract/translate hardcoded labels from classic theme (#4168) 2021-02-03 20:06:26 +01:00
SearchBar.tsx feat(v2): allow to change location of search bar (#4199) 2021-02-09 16:31:52 +01:00
ThemeContext.ts feat(v2): Provide typing to most of the theme-classic components (#3348) 2020-08-28 12:06:37 +02:00
UserPreferencesContext.ts feat(v2): Support swizzling TypeScript components (#2671) 2020-06-25 16:07:30 +02:00
prism-include-languages.ts refactor(v2): TS config update: reduce the size of npm modules (#4375) 2021-03-17 16:25:42 +01:00