Commit graph

872 commits

Author SHA1 Message Date
Joshua Chen
661bc32402
chore(deps): bump all dependencies; regenerate lockfile (#6580) 2022-02-02 13:00:31 +08:00
Alexey Pyltsyn
72bad11e97
fix(theme-classic): highlight active collapsible doc category properly (#6531) 2022-02-01 21:18:21 +08:00
Joshua Chen
aa446b7a9c
chore: clean up ESLint config, enable a few rules (#6514)
* chore: clean up ESLint config, enable a few rules

* enable max-len for comments

* fix build
2022-01-31 10:31:24 +08:00
Kishan Gajera
b8ccb869f1
fix(theme-classic): add key prop for SimpleLinks map (#6515) 2022-01-31 10:07:16 +08:00
Kishan Gajera
dda92eb2b6
fix(theme-classic): apply width/height for footer logos without href (#6508) 2022-01-29 23:16:40 +08:00
Matthew Ailes
d45f96fc83
fix: updating peerDependency fields for yarn berry (#6498) 2022-01-29 10:29:03 +08:00
Joshua Chen
0e13356e1b
feat: mark some text labels as translatable (#6482)
* feat: mark some text labels as translatable

* tweak
2022-01-27 19:36:37 +08:00
Sébastien Lorber
d6cff8c754
chore(v2): prepare v2.0.0-beta.15 release (#6473) 2022-01-26 19:28:16 +01:00
Joshua Chen
76a8d5f38a
fix(content-blog): generate feed by reading build output (#6454) 2022-01-26 16:54:15 +01:00
Joshua Chen
ebd5340205
chore: various improvements to repo setup (#6471)
* chore: various improvements to repo setup

* fix again

* fix
2022-01-26 14:24:15 +08:00
Joshua Chen
83fb3a825f
refactor: clean up dependencies (#6470) 2022-01-26 13:12:03 +08:00
Mikey O'Toole
d0fc31c8ae
feat(theme-classic): add stable class for DocSidebarContainer (#6466) 2022-01-26 10:47:54 +08:00
Nick Schonning
521eb119a7
chore: add cSpell for spell checking (#6456)
* 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
e40cafccd5
chore: enable stylelint standard config (#6442)
* chore: enable stylelint standard config

* remove empty line

* fix
2022-01-22 21:26:35 +08:00
Joshua Chen
456ffbd330
chore: remove some unused dependencies from package.json (#6440) 2022-01-22 19:47:35 +08:00
Joshua Chen
c2e2938d1b
refactor(theme-classic): render BlogPostItem as one JSX element (#6436) 2022-01-22 14:56:43 +08:00
Joshua Chen
807b4c2ced
feat(theme-classic): add aria-current to sidebar category link (#6427) 2022-01-21 11:40:27 +08:00
Joseph
8ce3cee400
feat(theme-classic): auto-collapse sibling categories in doc sidebar (#3811)
Co-authored-by: Josh-Cena <sidachen2003@gmail.com>
2022-01-20 16:38:16 +01:00
Joshua Chen
4e69c052d6
feat(content-blog): allow authors list to contain images only (#6416)
* feat(content-blog): allow authors list to contain images only

* adjust styles

* fix

* fix

* mention in docs

* fix wording
2022-01-20 22:08:18 +08:00
Joshua Chen
fdf59f30f0
feat(content-pages): front matter validation, include front matter in metadata (#6400) 2022-01-19 13:44:58 +01:00
Joshua Chen
e5801e49f6
feat(mdx-loader): read image dimensions when processing Markdown (#6339) 2022-01-19 12:45:14 +01:00
Yaroslav Serhieiev
6f892e20b0
feat(core, theme-classic): allow overriding htmlLang (#6371) 2022-01-19 12:38:42 +01:00
Joshua Chen
6c0da3ee4b
refactor: clean up TODO comments (#6399) 2022-01-19 12:10:50 +08:00
Joshua Chen
1d7827d572
refactor(theme-classic): add comments to Prism setup; minor refactor (#6391) 2022-01-18 19:46:22 +08:00
Joshua Chen
52db7320a6
chore: enable eslint-plugin-jest (#6375) 2022-01-16 15:53:23 +08:00
Joshua Chen
14bec7cf11
feat(stylelint-copyright): autofix, stricter config (#6374)
* feat(stylelint-copyright): autofix, stricter config

* revert TS

* oops
2022-01-16 11:34:10 +08:00
Nick Schonning
284c6166e7
chore: add baseline stylelint rules (#6372)
* chore: add baseline stylelint rules

Use the Prettier config so not to conflict with rules.
Add the Stylelint baseline recommended rules to catch additional lissues

* enable those two rules

* ooops

* refactor scripts

* revert script changes

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-01-16 09:42:58 +08:00
Nick Schonning
9f9a96dc80
chore: upgrade lint-staged and globs (#6369) 2022-01-15 16:33:09 +08:00
Sébastien Lorber
8b7ab21d38
fix(core): error boundary should allow no children (#6338) 2022-01-14 10:39:24 +01:00
Nick Schonning
02a233a221
chore: minor typo cleanup (#6324)
* chore: minor typo cleanup

* fix tests

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-01-13 14:36:53 +08:00
Joshua Chen
a2d2324ca7
fix(theme-classic): fix mobile version dropdown label with only one version (#6314)
* fix(theme-classic): fix mobile version dropdown label with only one version

* properly fix
2022-01-11 21:53:41 +08:00
Joshua Chen
cf265c051e
refactor: move exported type definitions to declaration file (#6300)
* refactor: move exported type definitions to declaration file

* fix

* fix
2022-01-09 22:02:31 +08:00
Joshua Chen
4fad1ce0cd
misc: convert all internal scripts to ESM (#6286)
* misc: convert all internal scripts to ESM

* fixes

* fix

* fixes

* fix!

* complete eslint

* more move

* fix!

* This looks better?

* Final ones
2022-01-08 12:59:28 +08:00
Josh Goldberg
bcc05e243f
fix(theme-classic): add missing role=region to SkipToContent (#6288) 2022-01-07 19:31:05 +01:00
Sébastien Lorber
f87a3ead46
refactor: move @theme/hooks to @docusaurus/theme-common (#6289) 2022-01-07 19:19:35 +01:00
Sébastien Lorber
024f2bf49b
refactor: new @docusaurus/plugin-content-docs/client interface (#6287) 2022-01-07 17:04:21 +01:00
Sébastien Lorber
3bc63b2b09
refactor(theme-classic): apply import/no-named-export eslint rule (#6283) 2022-01-07 14:44:55 +01:00
Minh Pham
eade41a702
feat(theme-classic): new navbar item linking to a sidebar (#6139)
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 (#6239) 2022-01-06 11:31:01 +01:00
Joshua Chen
b0c23275f3
refactor(theme-classic): use front matter from metadata for BlogPostPage (#6240) 2022-01-05 18:55:04 +01:00
Joshua Chen
cb1aa30286
refactor: enforce type import specifiers (#6230)
* refactor: enforce type import specifiers

* fix

* Upgrade esbuild

* Fix (haha)
2021-12-31 21:17:09 +08:00
Joshua Chen
c45281a581
feat(theme-classic): usable CodeBlock outside markdown (#6216) 2021-12-29 17:17:09 +01:00
Joshua Chen
ae9f43fbc0
refactor(theme-classic): extract common PaginatorNavLink component (#6213) 2021-12-29 12:44:08 +01:00
Joshua Chen
73ee356949
docs: audit grammar issues (#6203)
* docs: audit grammar mistakes

* fix code block language

* revert change

* let's get another
2021-12-27 19:34:04 +08:00
Joshua Chen
3889e89380
fix(theme-classic): make React elements in pre render correctly (#6177)
* fix(theme-classic): make React elements in pre render correctly

* Properly fix

* Use MDX

* Add docs

* Better comment

* Update code-block-tests.mdx
2021-12-25 15:27:29 +08:00
Sébastien Lorber
01b407011a
chore(v2): prepare v2.0.0-beta.14 release (#6147) 2021-12-21 17:15:04 +01:00
Yaroslav Serhieiev
9d95d786fa
feat(theme-classic): allow stylizing doc paginator arrows (#6053)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2021-12-21 15:55:24 +01:00
Joshua Chen
0384a7919e
fix(theme-classic): fix translation when footer has no links (#6144) 2021-12-21 20:12:19 +08:00
Christopher Klint
d987c22996
feat(theme-classic): new configuration syntax for a simple footer (#6132)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2021-12-20 19:45:27 +01:00
Joshua Chen
cb4265253a
feat(theme-classic): standalone Admonition component (#5848) 2021-12-20 17:51:19 +01:00