Commit graph

324 commits

Author SHA1 Message Date
Joshua Chen
f04cb7abb9
test(content-docs): refactor navigation test snapshot ()
* test(content-docs): refactor navigation test snapshot

* format
2022-03-03 14:00:42 +08:00
Joshua Chen
f903422617
refactor: unify error handling behavior ()
* refactor: unify error handling behavior

* revert

* normalize paths

* test...

* change

* does this work...

* fix...

* maybe fix

* maybe fix

* fix

* fix...
2022-02-25 15:07:13 +08:00
Joshua Chen
0d14470d54
refactor: unify export directive style () 2022-02-24 17:25:17 +08:00
Joshua Chen
2d93750caf
fix(content-docs): improve sidebar shorthand normalization error message () 2022-02-23 13:03:58 +01:00
Joshua Chen
051380aa4b
fix(content-docs): properly display collocated social card image ()
* fix(content-docs): properly display collocated social card image

* oops
2022-02-23 18:21:22 +08:00
Joshua Chen
c6d0d812eb
refactor: convert all fs methods to async ()
* refactor: convert all fs methods to async

* fix snap
2022-02-20 10:21:33 +08:00
Balthasar Hofer
c0b3c9af65
fix(content-docs): create assets for frontmatter images ()
* create assets for docs front matter images aswell

fixes: 

* retrigger fb cla-check
2022-02-20 10:20:33 +08:00
Joshua Chen
ea6ceaa371
refactor: ensure lodash is default-imported () 2022-02-19 18:15:02 +08:00
Jody Heavener
3629b5ab39
feat(docs,theme-classic): docs breadcrumbs ()
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-02-16 19:02:58 +01:00
Felipe Santos
6996ed2f2f
feat(content-blog): infer blog post date from git history () 2022-02-09 17:18:32 +01:00
TheCatLady
665d164351
feat(content-docs): add custom props front matter ()
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-02-09 17:04:07 +01:00
Joshua Chen
5db848f0e7
refactor: move module declarations for non-route components to theme-classic () 2022-02-07 20:17:41 +08:00
Joshua Chen
45f6f8b869
chore: fix ESLint warnings, restrict export all syntax ()
* chore: fix ESLint warnings, forbid export all syntax

* fix...

* reorder
2022-02-04 21:57:10 +08:00
Joshua Chen
0c4dc00443
feat(content-docs): allow omitting enclosing array consistently for category shorthand ()
* feat(content-docs): allow omitting enclosing array consistently for category shorthand

* update snapshot

* fix doc
2022-02-04 11:16:08 +08:00
Joshua Chen
e3fd3e74ce
refactor(content-docs): clean up sidebars logic; validate generator returns ()
* refactor(content-docs): clean up sidebars logic; validate generator returns

* remove another TODO

* fix types

* refactors

* refactor...
2022-02-04 09:46:25 +08:00
Joshua Chen
1ca07f8466
refactor(content-docs): read category metadata files before autogenerating ()
* refactor(content-docs): read category metadata files before autogenerating

* fix tests

* fix Windows...

* warn user when behavior is undetermined

* oops

* fix typo
2022-02-03 16:16:19 +08:00
Felipe Santos
b03431f139
fix: read last update from inner git repositories () 2022-02-03 16:02:28 +08:00
Jody Heavener
6ec0db4722
feat(content-docs): sidebar item type "html" for rendering pure markup ()
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-02-02 18:38:35 +01:00
Miles Johnson
65ba551f5b
fix(content-docs): export versioning utils () 2022-02-02 17:21:54 +01:00
Joshua Chen
3573b5e4a9
fix(content-docs): render category with no subitems as a normal link () 2022-02-02 14:45:00 +01:00
Joshua Chen
1cefb643dd
refactor: enforce named capture groups; clean up regexes ()
* refactor: enforce named capture groups; clean up regexes

* fixes

* fix
2022-02-01 17:43:15 +08:00
Joshua Chen
c56e6194b4
refactor: mark all functions that import external modules as async () 2022-01-31 13:04:45 +08:00
Joshua Chen
aa446b7a9c
chore: clean up ESLint config, enable a few rules ()
* chore: clean up ESLint config, enable a few rules

* enable max-len for comments

* fix build
2022-01-31 10:31:24 +08:00
Joshua Chen
2553f1fb5a
refactor: improve internal typing ()
* refactor: improve internal typing

* fix

* fix test
2022-01-29 22:58:40 +08:00
Joshua Chen
3c58d7f027
feat(content-docs): allow explicitly disabling index page for generated category ()
* 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 ()
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-01-26 17:58:52 +01:00
Nick Schonning
521eb119a7
chore: add cSpell for spell checking ()
* chore: Add cSpell for spell checking

* chore: exclude map files and remove dups

* chore: exclude more binary files

* chore: remove MD headings

* Update .cspell.json

* fix a few spellings

* fix more

* fix

Signed-off-by: Joshua Chen <sidachen2003@gmail.com>

* fix a few

* oops

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-01-25 09:40:02 +08:00
Joshua Chen
64909e7f14
fix(content-docs): make getActivePlugin match plugin paths more exactly ()
* fix(content-docs): make getActivePlugin match plugin IDs more exactly

* refactor...
2022-01-22 13:36:56 +08:00
Joshua Chen
45f1b819b5
feat(content-docs): displayed_sidebar front matter () 2022-01-19 16:00:42 +01:00
Joshua Chen
62223ee556
test: improve test coverage ()
* test: improve test coverage

* fix

* use posixPath
2022-01-18 16:29:40 +08:00
Joshua Chen
3cb0972b79
refactor: use findAsyncSequential in a few places ()
* refactor: use findAsyncSequential in a few places

* fixes

* fix
2022-01-17 08:57:06 +08:00
Joshua Chen
52db7320a6
chore: enable eslint-plugin-jest () 2022-01-16 15:53:23 +08:00
Tapan Chudasama
3e5944ef1f
fix: highlight appropriate navItem based on active sidebar item ()
* fix: highlight appropriate navItem based on active sidebar item

* fix: try using location.pathname

* fix: remote console.log

* fix: include category generated indices in globalData

* Add test

* fix snap

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-01-16 13:41:40 +08:00
Joshua Chen
cf265c051e
refactor: move exported type definitions to declaration file ()
* refactor: move exported type definitions to declaration file

* fix

* fix
2022-01-09 22:02:31 +08:00
Sébastien Lorber
024f2bf49b
refactor: new @docusaurus/plugin-content-docs/client interface () 2022-01-07 17:04:21 +01:00
Joshua Chen
edab7e07ed
refactor(content-docs): make readVersionsMetadata async ()
* refactor(content-docs): make readVersionsMetadata async

* fix tests
2022-01-06 21:46:08 +08:00
Minh Pham
eade41a702
feat(theme-classic): new navbar item linking to a sidebar ()
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-01-06 11:52:25 +01:00
Joshua Chen
3cb99124de
feat(content-docs): allow SEO metadata for category index pages () 2022-01-06 11:31:01 +01:00
Joshua Chen
cb1aa30286
refactor: enforce type import specifiers ()
* refactor: enforce type import specifiers

* fix

* Upgrade esbuild

* Fix (haha)
2021-12-31 21:17:09 +08:00
Joshua Chen
3195e7feed
fix(content-docs): quotify path when retrieving git history ()
* fix(content-docs): quotify path when retrieving git history

* Enable last update in dogfooding
2021-12-27 17:27:48 +08:00
Sébastien Lorber
b393700a61
feat: async plugin creator functions () 2021-12-22 19:10:49 +01:00
Joshua Chen
287292497d
test: fix async tests resolved in random order () 2021-12-21 18:51:56 +08:00
Joshua Chen
770418f8d2
refactor: unify log format with new logger utility ()
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2021-12-20 17:24:59 +01:00
Joshua Chen
a5d2815154
fix(content-docs): restore behavior when pagination front matter is null ()
* fix(content-docs): restore behavior when pagination front matter is null

* update snaps
2021-12-18 10:31:31 +08:00
Joshua Chen
74aa87242f
test: use snapshots for sidebar tests () 2021-12-17 18:17:09 +01:00
Sébastien Lorber
fd2934d10d
getMainDocId should return doc with both versioned or unversioned id () 2021-12-10 09:35:57 -08:00
Joshua Chen
fd966b5395
refactor: add blank lines below all copyright headers () 2021-12-09 11:53:46 +08:00
Joshua Chen
e07ebadf6c
fix: make Docusaurus PnP strict mode compatible ()
Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
2021-12-08 14:26:24 +01:00
Alexey Pyltsyn
f96a051fbe
refactor: remove deprecated docs homePageId option () 2021-12-07 19:48:30 +01:00
Alexey Pyltsyn
283166c211
refactor: remove unused metadata field for homepage () 2021-12-06 12:28:35 +08:00