Rafael Martins
628752d92a
feat(create-docusaurus): ask user for preferred language when no language CLI option provided ( #9442 )
...
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
2024-02-15 13:05:05 +01:00
ozaki
fd49301a45
feat(core): make broken link checker detect broken anchors - add onBrokenAnchors
config ( #9528 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2024-01-04 12:56:20 +01:00
Sébastien Lorber
affca7a9a2
feat: siteConfig.markdown.parseFrontMatter hook ( #9624 )
2023-12-16 02:50:26 +01:00
ozaki
c6762a2542
feat(mdx-loader): Remark plugin to report unused MDX / Markdown directives ( #9394 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-10-24 16:15:49 +02:00
Chongyi Zheng
45f1a669b5
feat(core): support TypeScript + ESM configuration ( #9317 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2023-10-14 02:46:03 +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
Anders Bech Mellson
19ba0ff49d
feat(theme-algolia): add option.replaceSearchResultPathname to process/replaceAll search result urls ( #8428 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-12-22 18:24:28 +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
Joshua Chen
bfba6a8b02
refactor: remove "error" reporting level, move reportMessage to logger ( #7642 )
2022-06-17 14:51:00 +02:00
Joshua Chen
abe5450526
feat(core): allow customizing the i18n directory path ( #7386 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-06-02 17:37:14 +02:00
Sébastien Lorber
dbd161d67c
fix(create-docusaurus): potential security issue with command injection ( #7507 )
2022-05-27 10:41:15 +02:00
Joshua Chen
b49ae67521
refactor(types): move non-core, non-public types out of the types package ( #7293 )
2022-05-03 17:15:48 +08:00
Joshua Chen
3b32a41f22
fix(core): handle case where package.json is not available at CWD ( #7187 )
2022-04-21 16:07:02 +02:00
Joshua Chen
1156be3f20
refactor(content-{blog,docs}): unify handling of tags ( #7117 )
2022-04-07 15:58:21 +02:00
Joshua Chen
77662260f8
refactor(core): refactor routes generation logic ( #7054 )
...
* refactor(core): refactor routes generation logic
* fixes
2022-03-29 16:37:29 +08:00
Joshua Chen
85a79fd9b9
refactor(core): reorganize functions ( #7037 )
2022-03-28 17:12:36 +08:00
Joshua Chen
2eeb0e46a2
feat(utils): JSDoc for all APIs ( #6980 )
...
* feat(utils): JSDoc for all APIs
* fix tests
2022-03-24 21:34:31 +08:00
Felipe Santos
e19a4e23e7
fix(content-docs): warn when files are not tracked ( #6937 )
...
* fix(docs): warn when files are not tracked
* chore(devcontainer): use non-root user
* test: fix jest in vscode
* test(docs): improve existing test
* chore(devcontainer): fix jest error on startup
* chore: fix comments
* chore: remove "probably" from error message
2022-03-21 08:42:36 +08:00
Joshua Chen
ad88f5cc87
test: improve test coverage; multiple internal refactors ( #6912 )
2022-03-14 21:53:57 +08:00
Joshua Chen
670f2e5268
refactor(utils): categorize functions into separate files ( #6773 )
2022-02-26 21:17:21 +08:00
Joshua Chen
f903422617
refactor: unify error handling behavior ( #6755 )
...
* 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
c6d0d812eb
refactor: convert all fs methods to async ( #6725 )
...
* refactor: convert all fs methods to async
* fix snap
2022-02-20 10:21:33 +08:00
Joshua Chen
ea6ceaa371
refactor: ensure lodash is default-imported ( #6716 )
2022-02-19 18:15:02 +08:00
Felipe Santos
6996ed2f2f
feat(content-blog): infer blog post date from git history ( #6593 )
2022-02-09 17:18:32 +01:00
Joshua Chen
45f6f8b869
chore: fix ESLint warnings, restrict export all syntax ( #6605 )
...
* chore: fix ESLint warnings, forbid export all syntax
* fix...
* reorder
2022-02-04 21:57:10 +08:00
Joshua Chen
1cefb643dd
refactor: enforce named capture groups; clean up regexes ( #6524 )
...
* refactor: enforce named capture groups; clean up regexes
* fixes
* fix
2022-02-01 17:43:15 +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
Joshua Chen
58e07a6796
test: add test for readOutputHTMLFile ( #6506 )
2022-01-29 18:10:46 +08:00
Joshua Chen
76a8d5f38a
fix(content-blog): generate feed by reading build output ( #6454 )
2022-01-26 16:54:15 +01: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
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
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
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
Joshua Chen
e07ebadf6c
fix: make Docusaurus PnP strict mode compatible ( #6047 )
...
Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
2021-12-08 14:26:24 +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
Alexey Pyltsyn
63bd6b9025
refactor: define own translations in other themes ( #5849 )
...
Co-authored-by: Armano <armano2@users.noreply.github.com>
2021-11-20 16:35:27 +01:00
Joshua Chen
0374426ce3
chore: upgrade TypeScript & other ESLint related deps ( #5963 )
...
* chore: upgrade ESLint related deps
* Upgrade TS
* Fix lock
* Bump Babel
* Update config
2021-11-18 21:15:37 +08:00
Joshua Chen
1363a25819
refactor: use js-yaml to parse both JSON and YAML ( #5806 )
2021-11-03 17:55:14 +01:00
Joshua Chen
72990726e5
refactor: fix a few type inconsistencies ( #5788 )
2021-10-27 11:53:08 +02:00
moonrailgun
6ed698976d
feat(content-blog): add full blog post html into RSS/Atom feeds ( #4330 )
...
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-10-08 12:59:02 +02:00
Joshua Chen
3f1f8255a2
chore: upgrade Prettier + regenerate lock file ( #5611 )
...
* Bump deps
* Run prettier
* Format docs
* Minor refactor
* Collapse objects
* Fix type
* Update lock file
2021-09-30 12:54:17 +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
4d06f26c1f
fix(v2): Fix MDX docs being considered as partials when siteDir match the _ prefix convention ( #5199 )
...
* Add _ to dogfood docs folder to cover against edge case
* Fix edge case with MDX partials when site / content dir contains a _ prefix
* add globUtils tests
* proper dogfooding folder re-organization, all content plugins being used
* refactor dogfooding folder + expose /tests page index
* fix page plugin ignoring options.routeBasePath
2021-07-21 14:13:51 +02:00
Sébastien Lorber
8bdb3da233
feat(v2): generalize usage of _ prefix convention to exclude content files/folders ( #5173 )
...
* create a swizzleWarning partial for shared text
* Generalize usage of _ prefix convention to exclude content files/folders
* add api doc
* MDX loader should not expect metadata/frontmatter on MDX partial files
2021-07-15 13:21:41 +02:00
Sébastien Lorber
a78e4f19b2
fix(v2): redirect plugin should emit redirect files with lower precedence than redirect target ( #5085 )
...
* revert old behavior of the redirect plugin
* revert old behavior of the redirect plugin
2021-06-29 19:34:55 +02:00
Sébastien Lorber
99270dbab2
fix(v2): fix Webpack persistent caching (evict on swizzle/alias/config change) ( #5047 )
...
* webpack upgrade
* refactor docusaurus-utils hash fns
* Fix webpack cache eviction problems on config/aliases/swizzle changes
* Move/Rename InitPlugin type
* fix TS typos
* Add tests for webpack aliases
* fix windows tests
2021-06-24 12:56:56 +02:00
Sébastien Lorber
b54ec72389
fix(v2): redirect plugin: use siteConfig.trailingSlash ( #4988 )
2021-06-16 19:04:28 +02:00
Alexey Pyltsyn
41d9288e3d
refactor(v2): cleanup console output ( #4979 )
...
* refactor(v2): cleanup console output
* fix jest issue
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-06-16 11:37:28 +02:00
Lucas Correia
34411e12e5
fix(v2): truncate docuhash return value in order to avoid ERRNAMETOOLONG error ( #4899 )
...
* fix: truncate docuhash return value in order to avoid ERRNAMETOOLONG error
* chore: add deep file path test page to website
* refactor: reorganize docuHash/pathUtils code and tests
* chore: git support longpaths on v2 windows tests workflow
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-06-15 18:39:06 +02:00