refactor: rename docs -> website

This commit is contained in:
Jan De Dobbeleer 2022-05-13 07:54:59 +02:00
parent 6462607178
commit e716d3040e
No known key found for this signature in database
GPG key ID: F6CC273CE5BA9AEE
134 changed files with 11844 additions and 27352 deletions

View file

@ -4,7 +4,7 @@ on:
- 'README.md' - 'README.md'
- 'CONTRIBUTING.md' - 'CONTRIBUTING.md'
- 'COPYING' - 'COPYING'
- 'docs/**' - 'website/**'
- '.github/*.md' - '.github/*.md'
- '.github/FUNDING.yml' - '.github/FUNDING.yml'

View file

@ -4,7 +4,7 @@ on:
- 'README.md' - 'README.md'
- 'CONTRIBUTING.md' - 'CONTRIBUTING.md'
- 'COPYING' - 'COPYING'
- 'docs/**' - 'website/**'
- '.github/*.md' - '.github/*.md'
- '.github/FUNDING.yml' - '.github/FUNDING.yml'

View file

@ -4,7 +4,7 @@ on:
- 'README.md' - 'README.md'
- 'CONTRIBUTING.md' - 'CONTRIBUTING.md'
- 'COPYING' - 'COPYING'
- 'docs/**' - 'website/**'
- '.github/*.md' - '.github/*.md'
- '.github/FUNDING.yml' - '.github/FUNDING.yml'
push: push:

View file

@ -5,7 +5,7 @@ on:
branches: branches:
- main - main
paths: paths:
- 'docs/**' - 'website/**'
- 'themes/**' - 'themes/**'
jobs: jobs:
@ -46,7 +46,7 @@ jobs:
- name: Render themes 🎨 - name: Render themes 🎨
run: | run: |
export PATH="$PWD/src/bin:$PATH" export PATH="$PWD/src/bin:$PATH"
cd docs cd website
npm install npm install
npm run themes npm run themes
cd .. cd ..
@ -59,6 +59,6 @@ jobs:
action: "upload" action: "upload"
###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### ###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: "/docs" # App source code path app_location: "/website" # App source code path
api_location: "/docs/api" # Api source code path - optional api_location: "/website/api" # Api source code path - optional
output_location: "build" # Built app content directory - optional output_location: "build" # Built app content directory - optional

4
.vscode/launch.json vendored
View file

@ -113,8 +113,8 @@
"type": "node", "type": "node",
"request": "launch", "request": "launch",
"name": "Theme export", "name": "Theme export",
"cwd": "${workspaceFolder}/docs", "cwd": "${workspaceFolder}/website",
"program": "${workspaceRoot}/docs/export_themes.js", "program": "${workspaceRoot}/website/export_themes.js",
"console": "integratedTerminal" "console": "integratedTerminal"
}, },
{ {

10
.vscode/tasks.json vendored
View file

@ -60,9 +60,9 @@
{ {
"type": "npm", "type": "npm",
"script": "start", "script": "start",
"path": "docs/", "path": "website/",
"problemMatcher": [], "problemMatcher": [],
"label": "docs: start site", "label": "website: start",
"detail": "cross-env NODE_ENV=development docusaurus start" "detail": "cross-env NODE_ENV=development docusaurus start"
}, },
{ {
@ -72,7 +72,7 @@
"isBackground": true, "isBackground": true,
"dependsOn": "npm install (functions)", "dependsOn": "npm install (functions)",
"options": { "options": {
"cwd": "${workspaceFolder}/docs/api" "cwd": "${workspaceFolder}/website/api"
} }
}, },
{ {
@ -80,7 +80,7 @@
"label": "npm install (functions)", "label": "npm install (functions)",
"command": "npm install", "command": "npm install",
"options": { "options": {
"cwd": "${workspaceFolder}/docs/api" "cwd": "${workspaceFolder}/website/api"
} }
}, },
{ {
@ -89,7 +89,7 @@
"command": "npm prune --production", "command": "npm prune --production",
"problemMatcher": [], "problemMatcher": [],
"options": { "options": {
"cwd": "${workspaceFolder}/docs/api" "cwd": "${workspaceFolder}/website/api"
} }
} }
] ]

View file

@ -2,7 +2,7 @@
<p align="center"> <p align="center">
<img <img
width="400" width="400"
src="https://raw.githubusercontent.com/jandedobbeleer/oh-my-posh/main/docs/static/img/logo.png" src="https://raw.githubusercontent.com/jandedobbeleer/oh-my-posh/main/website/static/img/logo.png"
alt="Oh My Posh Prompt theme engine for any shell" alt="Oh My Posh Prompt theme engine for any shell"
/> />
</p> </p>

View file

@ -1,9 +0,0 @@
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "",
"FUNCTIONS_WORKER_RUNTIME": "node",
"API_LOCATION": "http://localhost:7071",
"DOCS_LOCATION": "http://localhost:3000"
}
}

27322
docs/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -159,7 +159,7 @@ directory name, you need to specify it as `\\\\`.
This means that for user Bill, who has a user account `Bill` on Windows and `bill` on Linux, `~/Foo` might match This means that for user Bill, who has a user account `Bill` on Windows and `bill` on Linux, `~/Foo` might match
`C:\Users\Bill\Foo` or `C:\Users\Bill\foo` on Windows but only `/home/bill/Foo` on Linux. `C:\Users\Bill\Foo` or `C:\Users\Bill\foo` on Windows but only `/home/bill/Foo` on Linux.
[segments]: /docs/segments/angular.md [segments]: /docs/segments/angular
[colors]: /docs/configuration/colors [colors]: /docs/configuration/colors
[go-text-template]: https://golang.org/pkg/text/template/ [go-text-template]: https://golang.org/pkg/text/template/
[sprig]: https://masterminds.github.io/sprig/ [sprig]: https://masterminds.github.io/sprig/

View file

@ -167,8 +167,8 @@ And be patient, I'm going as fast as I can 🏎
[segment-go]: https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/segment.go [segment-go]: https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/segment.go
[themes]: https://github.com/JanDeDobbeleer/oh-my-posh/tree/main/themes [themes]: https://github.com/JanDeDobbeleer/oh-my-posh/tree/main/themes
[docs]: https://github.com/JanDeDobbeleer/oh-my-posh/tree/main/docs/docs/segments [docs]: https://github.com/JanDeDobbeleer/oh-my-posh/tree/main/website/docs/segments
[sidebars]: https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/docs/sidebars.js [sidebars]: https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/website/sidebars.js
[nf-icons]: https://www.nerdfonts.com/cheat-sheet [nf-icons]: https://www.nerdfonts.com/cheat-sheet
[tests]: https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/src/segments/az_test.go [tests]: https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/src/segments/az_test.go
[tables]: https://blog.alexellis.io/golang-writing-unit-tests/ [tables]: https://blog.alexellis.io/golang-writing-unit-tests/

View file

@ -59,7 +59,7 @@ go build -o $GOPATH/bin/oh-my-posh
## Get an editor ## Get an editor
A default config(.vscode folder) for [Visual Studio Code](https://code.visualstudio.com) is available in the repo: A default config(.vscode folder) for [Visual Studio Code][code] is available in the repo:
- golangci-lint is configured as the default linter. - golangci-lint is configured as the default linter.
- Recommended extensions available for a smooth bootstrap. - Recommended extensions available for a smooth bootstrap.
@ -76,7 +76,7 @@ Once the extensions are installed:
#### Configure Delve in VS Code #### Configure Delve in VS Code
[Delve](https://github.com/go-delve/delve) config is restrictive by default(string limit especially). You can expand some limits in VS Code(`settings.json` or directly in `launch.json`): [Delve][delve] config is restrictive by default(string limit especially). You can expand some limits in VS Code(`settings.json` or directly in `launch.json`):
``` ```
"go.delveConfig": { "go.delveConfig": {
@ -106,3 +106,5 @@ With everything set up, you're ready to start making changes and create your fir
[gh-pr]: https://github.com/JanDeDobbeleer/oh-my-posh/pulls [gh-pr]: https://github.com/JanDeDobbeleer/oh-my-posh/pulls
[omp]: https://github.com/JanDeDobbeleer/oh-my-posh [omp]: https://github.com/JanDeDobbeleer/oh-my-posh
[gh-fork]: https://guides.github.com/activities/forking/ [gh-fork]: https://guides.github.com/activities/forking/
[code]: https://code.visualstudio.com
[delve]: https://github.com/go-delve/delve

Some files were not shown because too many files have changed in this diff Show more