@docusaurus/core 0.0.0-4756 → 0.0.0-4760

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,7 +32,7 @@ exports.DEFAULT_CONFIG = {
32
32
  noIndex: false,
33
33
  tagline: '',
34
34
  baseUrlIssueBanner: true,
35
- staticDirectories: [utils_1.STATIC_DIR_NAME],
35
+ staticDirectories: [utils_1.DEFAULT_STATIC_DIR_NAME],
36
36
  };
37
37
  function createPluginSchema(theme) {
38
38
  return (utils_validation_1.Joi.alternatives()
@@ -81,14 +81,14 @@ Maybe you should remove them? ${unknownKeys}`;
81
81
  }
82
82
  // should we make this configurable?
83
83
  function getTranslationsDirPath(context) {
84
- return path_1.default.resolve(path_1.default.join(context.siteDir, `i18n`));
84
+ return path_1.default.resolve(path_1.default.join(context.siteDir, utils_1.I18N_DIR_NAME));
85
85
  }
86
86
  function getTranslationsLocaleDirPath(context) {
87
87
  return path_1.default.join(getTranslationsDirPath(context), context.locale);
88
88
  }
89
89
  exports.getTranslationsLocaleDirPath = getTranslationsLocaleDirPath;
90
90
  function getCodeTranslationsFilePath(context) {
91
- return path_1.default.join(getTranslationsLocaleDirPath(context), 'code.json');
91
+ return path_1.default.join(getTranslationsLocaleDirPath(context), utils_1.CODE_TRANSLATIONS_FILE_NAME);
92
92
  }
93
93
  async function readCodeTranslationFileContent(context) {
94
94
  return readTranslationFileContent(getCodeTranslationsFilePath(context));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@docusaurus/core",
3
3
  "description": "Easy to Maintain Open Source Documentation Websites",
4
- "version": "0.0.0-4756",
4
+ "version": "0.0.0-4760",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -41,13 +41,13 @@
41
41
  "@babel/runtime": "^7.17.8",
42
42
  "@babel/runtime-corejs3": "^7.17.7",
43
43
  "@babel/traverse": "^7.17.3",
44
- "@docusaurus/cssnano-preset": "0.0.0-4756",
45
- "@docusaurus/logger": "0.0.0-4756",
46
- "@docusaurus/mdx-loader": "0.0.0-4756",
44
+ "@docusaurus/cssnano-preset": "0.0.0-4760",
45
+ "@docusaurus/logger": "0.0.0-4760",
46
+ "@docusaurus/mdx-loader": "0.0.0-4760",
47
47
  "@docusaurus/react-loadable": "5.5.2",
48
- "@docusaurus/utils": "0.0.0-4756",
49
- "@docusaurus/utils-common": "0.0.0-4756",
50
- "@docusaurus/utils-validation": "0.0.0-4756",
48
+ "@docusaurus/utils": "0.0.0-4760",
49
+ "@docusaurus/utils-common": "0.0.0-4760",
50
+ "@docusaurus/utils-validation": "0.0.0-4760",
51
51
  "@slorber/static-site-generator-webpack-plugin": "^4.0.1",
52
52
  "@svgr/webpack": "^6.2.1",
53
53
  "autoprefixer": "^10.4.4",
@@ -106,8 +106,8 @@
106
106
  "webpackbar": "^5.0.2"
107
107
  },
108
108
  "devDependencies": {
109
- "@docusaurus/module-type-aliases": "0.0.0-4756",
110
- "@docusaurus/types": "0.0.0-4756",
109
+ "@docusaurus/module-type-aliases": "0.0.0-4760",
110
+ "@docusaurus/types": "0.0.0-4760",
111
111
  "@types/detect-port": "^1.3.2",
112
112
  "@types/nprogress": "^0.2.0",
113
113
  "@types/react-dom": "^17.0.14",
@@ -128,5 +128,5 @@
128
128
  "engines": {
129
129
  "node": ">=14"
130
130
  },
131
- "gitHead": "898f8d2e375b927bc51dde4d642119fb5f9f05c3"
131
+ "gitHead": "ca58c5f867aec349fb405a2056d4bdb4d140a0b5"
132
132
  }