Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions .eslintrc.js

This file was deleted.

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
.docusaurus
.cache-loader

# Compiled JavaScript from TypeScript sources
src/**/*.js
!src/theme/prism-include-languages.js

# Misc
.DS_Store
.env.local
Expand Down
7 changes: 0 additions & 7 deletions .prettierignore

This file was deleted.

7 changes: 0 additions & 7 deletions .prettierrc.json

This file was deleted.

10 changes: 0 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,3 @@ npmlint:
.PHONY: npmchecktypes
npmchecktypes:
npm run check:types

.PHONY: updateversion
updateversion:
ifndef VERSION
$(error "VERSION must be set")
endif
$(SED_I) "s/[0-9].[0-9][0-9]*\.[0-9][0-9]*/$(VERSION)/g" docs/installation.md
$(SED_I) "s/version: '[0-9].[0-9][0-9]*\.[0-9][0-9]*'/version: '$(VERSION)'/g" docs/ci-cd/github-actions.md
$(SED_I) "s/BUF_VERSION=[0-9].[0-9][0-9]*\.[0-9][0-9]*/BUF_VERSION=$(VERSION)/g" docs/ci-cd/setup.md
$(SED_I) "s/downloadRelease: '[0-9].[0-9][0-9]*\.[0-9][0-9]*'/downloadRelease: '$(VERSION)'/g" docusaurus.config.js
Comment on lines -56 to -64
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this was probably copied over from the docs; looks not relevant to this repository.

2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
presets: [require.resolve("@docusaurus/core/lib/babel/preset")]
presets: [require.resolve("@docusaurus/core/lib/babel/preset")],
};
44 changes: 44 additions & 0 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": false
},
"files": {
"ignoreUnknown": false,
"includes": [
"**",
"!**/node_modules",
"!**/build",
"!**/.docusaurus",
"!**/examples",
"!**/docs",
"!**/static",
// Skip files lifted directly from Facebook's Docusaurus.
"!src/theme/Footer/index.tsx"
]
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 100
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"javascript": {
"formatter": {
"trailingCommas": "es5"
}
},
"css": {
"parser": {
"cssModules": true
}
}
}
38 changes: 19 additions & 19 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ const config = {
src: "https://sparkling-delightful.protobuf.com/script.js",
"data-site": "NXKPYXNZ",
"data-spa": "auto",
defer: true
}
defer: true,
},
],

// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: "en",
locales: ["en"]
locales: ["en"],
},

presets: [
Expand All @@ -42,13 +42,13 @@ const config = {
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve("./sidebars.js")
sidebarPath: require.resolve("./sidebars.js"),
},
theme: {
customCss: require.resolve("./src/css/custom.css")
}
})
]
customCss: require.resolve("./src/css/custom.css"),
},
}),
],
],

plugins: [
Expand All @@ -57,10 +57,10 @@ const config = {
"@docusaurus/plugin-google-gtag",
{
trackingID: gaTrackingID,
anonymizeIP: true
}
anonymizeIP: true,
},
]
: null
: null,
],

themeConfig:
Expand All @@ -76,27 +76,27 @@ const config = {
// customDomain: process.env.FATHOM_ANALYTICS_CUSTOM_DOMAIN || "none"
// },
navbar: {
title: "Protobuf Guide"
title: "Protobuf Guide",
},
footer: {
style: "dark",
links: [],
copyright: `Copyright © ${
new Date().getFullYear() != 2022 ? "2022–" : ""
}${new Date().getFullYear()} Buf Technologies, Inc.`
new Date().getFullYear() !== 2022 ? "2022–" : ""
}${new Date().getFullYear()} Buf Technologies, Inc.`,
},
prism: {
theme: lightCodeTheme,
additionalLanguages: ["protobuf", "ebnf"]
additionalLanguages: ["protobuf", "ebnf"],
},
tableOfContents: {
minHeadingLevel: 2,
maxHeadingLevel: 5
maxHeadingLevel: 5,
},
colorMode: {
disableSwitch: true
}
})
disableSwitch: true,
},
}),
};

module.exports = config;
Loading