Skip to content

Commit

Permalink
Move docs under website (#1801)
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeguerin authored Nov 5, 2024
1 parent 4a82aa9 commit 2b00e87
Show file tree
Hide file tree
Showing 164 changed files with 101 additions and 98 deletions.
14 changes: 14 additions & 0 deletions .chronus/changes/move-docs-2024-10-4-23-37-28.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
changeKind: internal
packages:
- "@azure-tools/typespec-autorest-canonical"
- "@azure-tools/typespec-autorest"
- "@azure-tools/typespec-azure-core"
- "@azure-tools/typespec-azure-portal-core"
- "@azure-tools/typespec-azure-resource-manager"
- "@azure-tools/typespec-azure-rulesets"
- "@azure-tools/typespec-client-generator-core"
---

Move docs under website
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ packages/samples/test/output/azure/templates-contoso/setup.*
# JetBrains Rider
.idea/

docs/**/js-api/
**/docs/**/js-api/

# vitest temporary files
**/vitest.config.ts.timestamp*
Expand Down
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
"doc",
"${workspaceFolder}/packages/typespec-azure-resource-manager",
"--enable-experimental",
"--output-dir=../../docs/libraries/azure-resource-manager/reference"
"--output-dir=../../website/src/content/docs/docs/libraries/azure-resource-manager/reference"
],
"smartStep": true,
"sourceMaps": true,
Expand Down
63 changes: 0 additions & 63 deletions docs/libraries/azure-core/reference/linter.md

This file was deleted.

13 changes: 13 additions & 0 deletions docs/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Docs moved

Docs have moved into the website folder [../website/src/content/docs/docs](../website/src/content/docs/docs)

### For reference

This is an unfortunate current limitation of astro starlight. If things change in the future this is the current limitations:

- content folder MUST be under the astro website package(default src/content)
- astro allows symlink but it MUST be the whole collection(e.g. `src/content/docs`)
- starlight only way to put docs under a `docs/` path is to have another `docs/` folder under the collection one `src/content/docs` (resulting in `src/content/docs/docs`)

If any of the issues above is improve we could potentially move the docs back here or reduce at least some nesting
2 changes: 1 addition & 1 deletion packages/typespec-autorest-canonical/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"test:ci": "vitest run --coverage --reporter=junit --reporter=default",
"lint": "eslint . --max-warnings=0",
"lint:fix": "eslint . --fix ",
"regen-docs": "tspd doc . --enable-experimental --output-dir ../../docs/emitters/typespec-autorest-canonical/reference"
"regen-docs": "tspd doc . --enable-experimental --output-dir ../../website/src/content/docs/docs/emitters/typespec-autorest-canonical/reference"
},
"files": [
"lib/*.tsp",
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-autorest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"test:ci": "vitest run --coverage --reporter=junit --reporter=default",
"lint": "eslint . --max-warnings=0",
"lint:fix": "eslint . --fix ",
"regen-docs": "tspd doc . --enable-experimental --output-dir ../../docs/emitters/typespec-autorest/reference"
"regen-docs": "tspd doc . --enable-experimental --output-dir ../../website/src/content/docs/docs/emitters/typespec-autorest/reference"
},
"files": [
"lib/*.tsp",
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-azure-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"test:ci": "vitest run --coverage --reporter=junit --reporter=default",
"lint": "eslint . --max-warnings=0",
"lint:fix": "eslint . --fix ",
"regen-docs": "tspd doc . --enable-experimental --output-dir ../../docs/libraries/azure-core/reference"
"regen-docs": "tspd doc . --enable-experimental --output-dir ../../website/src/content/docs/docs/libraries/azure-core/reference"
},
"files": [
"lib/*.tsp",
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-azure-portal-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test:ci": "vitest run --coverage --reporter=junit --reporter=default",
"lint": "eslint . --max-warnings=0",
"lint:fix": "eslint . --fix ",
"regen-docs": "tspd doc . --enable-experimental --output-dir ../../docs/libraries/azure-portal-core/reference"
"regen-docs": "tspd doc . --enable-experimental --output-dir ../../website/src/content/docs/docs/libraries/azure-portal-core/reference"
},
"keywords": [
"Azure",
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-azure-resource-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"test:ci": "vitest run --coverage --reporter=junit --reporter=default",
"lint": "eslint . --max-warnings=0",
"lint:fix": "eslint . --fix ",
"regen-docs": "tspd doc . --enable-experimental --output-dir ../../docs/libraries/azure-resource-manager/reference"
"regen-docs": "tspd doc . --enable-experimental --output-dir ../../website/src/content/docs/docs/libraries/azure-resource-manager/reference"
},
"files": [
"lib/**/*.tsp",
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-azure-rulesets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"test:ci": "vitest run --coverage --reporter=junit --reporter=default",
"lint": "eslint . --max-warnings=0",
"lint:fix": "eslint . --fix ",
"regen-docs": "tspd doc . --enable-experimental --output-dir ../../docs/emitters/typespec-azure-rulesets/reference"
"regen-docs": "tspd doc . --enable-experimental --output-dir ../../website/src/content/docs/docs/emitters/typespec-azure-rulesets/reference"
},
"files": [
"dist/**",
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-client-generator-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"test:e2e": "vitest run --config ./vitest.config.e2e.ts",
"lint": "eslint . --max-warnings=0",
"lint:fix": "eslint . --fix ",
"regen-docs": "tspd doc . --enable-experimental --output-dir ../../docs/libraries/typespec-client-generator-core/reference"
"regen-docs": "tspd doc . --enable-experimental --output-dir ../../website/src/content/docs/docs/libraries/typespec-client-generator-core/reference"
},
"files": [
"lib/*.tsp",
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-service-csharp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"test:ci": "vitest run --coverage --reporter=junit --reporter=default",
"lint": "eslint . --max-warnings=0",
"lint:fix": "eslint . --fix ",
"regen-docs": "tspd doc . --enable-experimental --output-dir ../../docs/emitters/typespec-service-csharp/reference"
"regen-docs": "tspd doc . --enable-experimental --output-dir ../../website/src/content/docs/docs/emitters/typespec-service-csharp/reference"
},
"files": [
"lib/*.tsp",
Expand Down
1 change: 0 additions & 1 deletion website/.gitignore

This file was deleted.

3 changes: 1 addition & 2 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
"private": true,
"version": "0.0.1",
"scripts": {
"copy": "cp -r ../docs/. ./src/content/docs/docs",
"dev": "astro dev",
"start": "astro dev",
"build": "pnpm copy && tsx ./.scripts/build.ts",
"build": "tsx ./.scripts/build.ts",
"build:web": "pnpm regen-all-packages-docs && astro check --minimumFailingSeverity warning && astro build",
"preview": "astro preview",
"regen-all-packages-docs": "pnpm -w --filter \"@azure-tools/typespec-azure-website...\" --filter \"!@typespec/monorepo\" --filter \"!@azure-tools/typespec-azure-monorepo\" run regen-docs",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 2b00e87

Please sign in to comment.