Skip to content

Commit a910b0c

Browse files
committed
updated packages
2 parents ad97a94 + 15eacf6 commit a910b0c

File tree

6 files changed

+116
-44
lines changed

6 files changed

+116
-44
lines changed

.husky/pre-commit

Lines changed: 0 additions & 1 deletion
This file was deleted.

.prettierrc

Lines changed: 0 additions & 7 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ npm run start [product]/[version] # start a versioned product docs only
103103
npm run build # Full production build
104104
npm run build [product] # Full production build
105105
npm run build [product]/[version] # Full production build
106-
npm run format:check # Check code formatting
107-
npm run format # Auto-format with Prettier
108106
# Utilities
109107
npm run clear # Clear Docusaurus cache
110108
npm run serve # Serve production build after `npm run build`
@@ -369,17 +367,9 @@ Contributing is easy:
369367
npm run start
370368
```
371369

372-
2. **Make changes** to documentation or configuration
373-
374-
3. **Format code** before committing:
375-
376-
If this isn't done, a pre-commit hook will do it for you anyways.
377-
378-
```bash
379-
npm run format
380-
```
370+
2. **Make your changes** to documentation or configuration
381371

382-
4. **Test builds**:
372+
3. **Test builds**:
383373

384374
Test a build of the docs you edited:
385375

@@ -393,7 +383,7 @@ Test a build of all docs:
393383
npm run build
394384
```
395385

396-
5. **Submit pull request**
386+
4. **Submit pull request**
397387

398388
Create a PR to the dev branch, and then main when ready for production.
399389

docusaurus.dev.config.js

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
// @ts-check
2+
import { themes as prismThemes } from 'prism-react-renderer';
3+
4+
/** @type {import('@docusaurus/types').Config} */
5+
const config = {
6+
title: 'Netwrix Product Documentation',
7+
tagline: 'Documentation for Netwrix Products',
8+
favicon: 'img/branding/favicon.ico',
9+
url: process.env.RENDER_EXTERNAL_URL || 'http://localhost:3000',
10+
baseUrl: '/',
11+
onBrokenLinks: 'warn',
12+
onBrokenMarkdownLinks: 'warn',
13+
onBrokenAnchors: 'warn',
14+
15+
future: {
16+
experimental_faster: {
17+
swcJsLoader: true,
18+
swcJsMinimizer: true,
19+
swcHtmlMinimizer: true,
20+
lightningCssMinimizer: true,
21+
rspackBundler: true,
22+
rspackPersistentCache: true,
23+
mdxCrossCompilerCache: true,
24+
ssgWorkerThreads: true,
25+
},
26+
v4: {
27+
removeLegacyPostBuildHeadAttribute: true,
28+
},
29+
},
30+
31+
i18n: {
32+
defaultLocale: 'en',
33+
locales: ['en'],
34+
},
35+
36+
presets: [
37+
[
38+
'classic',
39+
/** @type {import('@docusaurus/preset-classic').Options} */
40+
({
41+
docs: false,
42+
blog: false,
43+
pages: false, // Disable pages (including homepage)
44+
theme: {
45+
customCss: './src/css/custom.css',
46+
},
47+
}),
48+
],
49+
],
50+
51+
plugins: [
52+
[
53+
'@docusaurus/plugin-content-docs',
54+
{
55+
id: '1secure',
56+
path: 'docs/1secure',
57+
routeBasePath: '/',
58+
sidebarPath: require.resolve('./sidebars/1secure.js'),
59+
editUrl: 'https://github.com/netwrix/docs/tree/main/',
60+
exclude: ['**/CLAUDE.md'],
61+
versions: {
62+
current: {
63+
label: 'Current',
64+
},
65+
},
66+
},
67+
],
68+
],
69+
70+
themeConfig: {
71+
image: 'img/Logo_RGB.svg',
72+
docs: {
73+
sidebar: {
74+
hideable: true,
75+
autoCollapseCategories: false,
76+
},
77+
},
78+
navbar: {
79+
logo: {
80+
alt: 'Netwrix Logo',
81+
src: 'img/branding/logo-red.svg',
82+
srcDark: 'img/branding/logo-white.svg',
83+
href: '/',
84+
},
85+
items: [
86+
{
87+
href: 'https://community.netwrix.com',
88+
label: 'Community',
89+
position: 'right',
90+
},
91+
{
92+
href: 'https://www.netwrix.com/support.html',
93+
label: 'Support',
94+
position: 'right',
95+
},
96+
{
97+
href: 'http://github.com/netwrix',
98+
label: 'GitHub',
99+
position: 'right',
100+
},
101+
],
102+
},
103+
prism: {
104+
theme: prismThemes.github,
105+
darkTheme: prismThemes.dracula,
106+
},
107+
},
108+
stylesheets: [
109+
'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap',
110+
],
111+
};
112+
113+
export default config;

package-lock.json

Lines changed: 0 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,10 @@
1616
"write-translations": "docusaurus write-translations",
1717
"write-heading-ids": "docusaurus write-heading-ids",
1818
"typecheck": "tsc",
19-
"format": "prettier --write .",
20-
"format:check": "prettier --check .",
2119
"prepare": "husky",
2220
"update-mappings": "node scripts/generate-product-mappings.js",
2321
"postinstall": "node scripts/windows-install.js"
2422
},
25-
"lint-staged": {
26-
"*.{js,jsx,ts,tsx,json,css,scss,md}": [
27-
"prettier --write"
28-
]
29-
},
3023
"dependencies": {
3124
"@docusaurus/babel": "^3.8.1",
3225
"@docusaurus/core": "^3.8.1",
@@ -48,7 +41,6 @@
4841
"cross-env": "^7.0.3",
4942
"husky": "^9.1.7",
5043
"ora": "^8.2.0",
51-
"prettier": "3.5.3",
5244
"table": "^6.9.0",
5345
"to-vfile": "^8.0.0",
5446
"vfile-reporter": "^8.1.1",

0 commit comments

Comments
 (0)