Commit graph

1908 commits

Author SHA1 Message Date
Joshua Chen
a79c23bc45
test(utils, mdx-loader, core): improve coverage (#6303)
* test(utils, mdx-loader, core): improve coverage

* windows...

* fix
2022-01-10 15:00:51 +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
Joshua Chen
37a84f86a5
fix(preset-classic): throw if preset finds GA options in theme config (#6284)
* fix(preset-classic): throw if preset finds GA options in theme config

* revert

* stricter
2022-01-07 12:50:45 +08:00
Reece Dunham
c08e247b56
refactor(core): use native types from webpack-dev-server (#6279)
Signed-off-by: Reece Dunham <me@rdil.rocks>
2022-01-06 23:05:03 +08:00
Joshua Chen
edab7e07ed
refactor(content-docs): make readVersionsMetadata async (#6277)
* refactor(content-docs): make readVersionsMetadata async

* fix tests
2022-01-06 21:46:08 +08:00
Joshua Chen
1d957d97e8
fix(migrate): migration CLI should correctly migrate gtag options (#6276)
* fix(migrate): migration CLI should correctly migrate gtag options

* fix
2022-01-06 20:39:23 +08: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
8fe1ddf46a
feat(sitemap): remove trailingSlash option; respect noIndex config (#6248) 2022-01-05 17:56:17 +01:00
Joshua Chen
37b70e3ab4
refactor(core): convert serverEntry.js to TS (#6237)
* refactor(core): convert serverEntry.js to TS

* fix

* migrate template to TS

* Move templates
2022-01-05 21:34:24 +08:00
Joshua Chen
9f0809ae28
fix(content-blog): always convert front matter date as UTC (#6244) 2022-01-02 12:47:23 +08: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
24d65d9bdd
refactor(utils): reorganize functions; move authors file resolution to utils (#6229)
* refactor(utils): reorganize functions; move authors file resolution to utils

* More refactor
2021-12-31 11:55:42 +08:00
Joshua Chen
218789f85e
refactor(theme-translations): improve typing for update script (#6225)
* refactor(theme-translations): improve typing for update script

* Remove
2021-12-30 17:28:57 +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
e067ce7ab5
feat(ideal-image): allow translating status messages (#6173)
* feat(ideal-image): allow translating ideal image messages

* Add source notice

* Add note

* Revert update translation changes

* Actually return default translations

* Fixes

* Update index.ts
2021-12-28 21:10:20 +08:00
Joshua Chen
9a783ef232
misc(theme-translations): multiple improvements to the update CLI (#6174) 2021-12-28 13:29:39 +01:00
Joshua Chen
4f2330a824
docs: recommend highlighting with comments than number range (#6204)
* docs: recommend highlighting with comments than number range

* quick fix
2021-12-28 10:55:24 +08: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
3195e7feed
fix(content-docs): quotify path when retrieving git history (#6202)
* fix(content-docs): quotify path when retrieving git history

* Enable last update in dogfooding
2021-12-27 17:27:48 +08:00
Nayan Patel
7fcadd0c36
docs: make installation guide more beginner-friendly (#6187)
* Add support for beginners

* Add files via upload

* Update intro.md

* Update intro.md

* Update intro.md

* Update intro.md

* Update intro.md

* Edits

* Edits

* Last nits

* Edit

* Update installation.md

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2021-12-26 19:29:47 +08:00
Joshua Chen
c7e6409add
fix(cli): quotify temp path in deploy command (#6197) 2021-12-26 11:25:24 +08:00
Joshua Chen
2cc89e502f
feat(content-blog): include front matter in loaded content metadata (#6189)
* feat(content-blog): include front matter in metadata

* fixes
2021-12-26 11:24:24 +08:00
Joshua Chen
e1bff072fe
feat(ideal-image): new option disableInDev (#6155)
* feat(ideal-image): new option disableInDev

* Add docs

* Use import type

* More docs
2021-12-25 21:48:38 +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
Joshua Chen
f02fefb5b7
fix(utils): properly escape Windows paths (#6190)
* fix(utils): properly escape Windows paths

* Use in more places

* Escape path in test

* Fix snapshot

* Better comment

* Fix tests
2021-12-25 15:24:21 +08:00
Joshua Chen
1460f867d0
refactor: print trailing new line when outputting JSON (#6186)
* refactor(core): print trailing new line when writing translation

* Print these as well
2021-12-24 22:11:35 +08:00
mcallisto
4122c75d57
feat(theme-translations): add Italian translations (#6169)
* Created it dir files

* Italian translations
2021-12-23 08:30:43 +08:00
Sébastien Lorber
8f8aa65446
fix(core): update webpack-dev-server + fix deprecation warning (#6168) 2021-12-22 20:05:14 +01:00
Sébastien Lorber
b393700a61
feat: async plugin creator functions (#6166) 2021-12-22 19:10:49 +01:00
Sébastien Lorber
f8a670966e
feat(core): async docusaurus.config.js creator function (#6165) 2021-12-22 17:03:01 +01:00
Sébastien Lorber
01b407011a
chore(v2): prepare v2.0.0-beta.14 release (#6147) 2021-12-21 17:15:04 +01:00
Joshua Chen
cc0a439e12
fix(migrate): do not modify non-MD files (#6146)
* fix(migrate): do not modify non-MD files

* Little refactor
2021-12-21 22:58:03 +08: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
Joshua Chen
287292497d
test: fix async tests resolved in random order (#6143) 2021-12-21 18:51:56 +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
Joshua Chen
770418f8d2
refactor: unify log format with new logger utility (#5994)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2021-12-20 17:24:59 +01:00
Alexey Pyltsyn
2318ef298f
fix: do not use aria-hidden in heading anchor links (#6128) 2021-12-19 00:35:31 +03:00
不郑
7e5f6bb805
feat(content-blog): support json feed (#6126)
* feat(content-blog): support json feed

* feat(content-blog): support json feed

* feat(content-blog): add json type to default feed options

* Refactors, docs, validation

* Fix test

* Ammend docs

* Add API doc

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2021-12-18 22:47:40 +08:00
Joshua Chen
06bd44c693
feat(theme-common): stable classname for code blocks (#6125)
* feat(theme-common): stable classname for code blocks

* Remove extra lines

* Fix styles

* Remove line
2021-12-18 13:32:30 +08:00
Joshua Chen
a5d2815154
fix(content-docs): restore behavior when pagination front matter is null (#6124)
* fix(content-docs): restore behavior when pagination front matter is null

* update snaps
2021-12-18 10:31:31 +08:00