mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
4ad56e8afc
Hello! We wanted to make the docs less impersonal, so we decided to add contributors. Now each doc page that has an `editUrl` (i.e, isn't generated) shows a list of everyone that contributed to it. This list is generated by: 1. Running `swizzle` on the `DocItem/Footer` in Docusaurus. 2. Grabbing metadata for the current file using an internal docusaurus API (Thank you to @homotechsual for the help there) 3. Getting the commits to the file in question with the GitHub API ![image](https://github.com/Unleash/unleash/assets/107407814/fd9c92ef-36ab-4d9e-ac11-6d724fd55d11) <details> <summary> Here's the command I ran, for posterity </summary> <code>npm run swizzle @docusaurus/theme-classic DocItem/Footer -- --wrap</code> </details> ## Discussion points 1. Design. What do you think of the layout? 2. Right now I'm hardcoding the info of Unleash team members. This creates a small maintenance burden, but it's something we wanted to add.
74 lines
2.3 KiB
JSON
74 lines
2.3 KiB
JSON
{
|
|
"name": "websitev-2",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"scripts": {
|
|
"docusaurus": "docusaurus",
|
|
"start": "yarn fetch-remote-content && docusaurus start",
|
|
"build": "yarn generate && yarn fetch-remote-content && docusaurus build",
|
|
"swizzle": "docusaurus swizzle",
|
|
"fetch-remote-content": "docusaurus download-remote-content-external && docusaurus download-remote-content-sdks",
|
|
"generate": "docusaurus gen-api-docs all && node clean-generated-docs.js",
|
|
"deploy": "yarn generate && yarn fetch-remote-content && docusaurus deploy",
|
|
"clear": "docusaurus clear",
|
|
"serve": "docusaurus serve",
|
|
"write-translations": "docusaurus write-translations",
|
|
"write-heading-ids": "docusaurus write-heading-ids"
|
|
},
|
|
"dependencies": {
|
|
"@docusaurus/core": "2.3.1",
|
|
"@docusaurus/plugin-client-redirects": "2.3.1",
|
|
"@docusaurus/plugin-google-analytics": "2.3.1",
|
|
"@docusaurus/preset-classic": "2.3.1",
|
|
"@docusaurus/remark-plugin-npm2yarn": "2.3.1",
|
|
"@docusaurus/theme-mermaid": "2.3.1",
|
|
"@mdx-js/react": "1.6.22",
|
|
"@svgr/webpack": "8.1.0",
|
|
"browserslist": "^4.16.5",
|
|
"docusaurus-plugin-openapi-docs": "2.0.0-beta.3",
|
|
"docusaurus-plugin-remote-content": "^3.1.0",
|
|
"docusaurus-theme-openapi-docs": "2.0.0-beta.2",
|
|
"git-url-parse": "^14.0.0",
|
|
"plugin-image-zoom": "flexanalytics/plugin-image-zoom",
|
|
"prism-svelte": "^0.5.0",
|
|
"react": "18.2.0",
|
|
"react-dom": "18.2.0",
|
|
"url-loader": "4.1.1"
|
|
},
|
|
"resolutions": {
|
|
"async": "^3.2.4",
|
|
"trim": "^1.0.0",
|
|
"got": "^13.0.0",
|
|
"glob-parent": "^6.0.0",
|
|
"browserslist": "^4.16.5",
|
|
"set-value": "^4.0.1",
|
|
"ansi-regex": "^5.0.1",
|
|
"nth-check": "^2.0.1",
|
|
"minimatch": "^5.0.0",
|
|
"decode-uri-component": "^0.4.0",
|
|
"qs": "^6.9.7",
|
|
"semver": "^7.5.3"
|
|
},
|
|
"browserslist": {
|
|
"production": [">0.5%", "not dead", "not op_mini all"],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "7.24.4",
|
|
"@docusaurus/module-type-aliases": "2.3.1",
|
|
"@tsconfig/docusaurus": "2.0.3",
|
|
"babel-loader": "9.1.3",
|
|
"enhanced-resolve": "5.16.0",
|
|
"react-router": "6.22.3",
|
|
"replace-in-file": "7.1.0",
|
|
"typescript": "4.8.4"
|
|
}
|
|
}
|