mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-29 02:08:36 +02:00
* [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>
43 lines
1.4 KiB
JavaScript
43 lines
1.4 KiB
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
const path = require('path');
|
|
|
|
const ignorePatterns = [
|
|
'/node_modules/',
|
|
'__fixtures__',
|
|
'/packages/docusaurus/lib',
|
|
'/packages/docusaurus-utils/lib',
|
|
'/packages/docusaurus-utils-validation/lib',
|
|
'/packages/docusaurus-plugin-content-blog/lib',
|
|
'/packages/docusaurus-plugin-content-docs/lib',
|
|
'/packages/docusaurus-plugin-content-pages/lib',
|
|
'/packages/docusaurus-theme-classic/lib',
|
|
'/packages/docusaurus-theme-classic/lib-next',
|
|
'/packages/docusaurus-migrate/lib',
|
|
];
|
|
|
|
module.exports = {
|
|
rootDir: path.resolve(__dirname),
|
|
verbose: true,
|
|
testURL: 'http://localhost/',
|
|
testEnvironment: 'node',
|
|
testPathIgnorePatterns: ignorePatterns,
|
|
coveragePathIgnorePatterns: ignorePatterns,
|
|
transform: {
|
|
'^.+\\.[jt]sx?$': 'babel-jest',
|
|
},
|
|
setupFiles: ['./jest/stylelint-rule-test.js', './jest/polyfills.js'],
|
|
moduleNameMapper: {
|
|
// TODO we need to allow Jest to resolve core Webpack aliases automatically
|
|
'@docusaurus/router': 'react-router-dom',
|
|
'@docusaurus/Translate': '@docusaurus/core/lib/client/exports/Translate',
|
|
'@docusaurus/Interpolate':
|
|
'@docusaurus/core/lib/client/exports/Interpolate',
|
|
'@generated/codeTranslations': '<rootDir>/jest/emptyModule.js',
|
|
},
|
|
};
|