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'
- 'CONTRIBUTING.md'
- 'COPYING'
- 'docs/**'
- 'website/**'
- '.github/*.md'
- '.github/FUNDING.yml'

View file

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

View file

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

View file

@ -5,7 +5,7 @@ on:
branches:
- main
paths:
- 'docs/**'
- 'website/**'
- 'themes/**'
jobs:
@ -46,7 +46,7 @@ jobs:
- name: Render themes 🎨
run: |
export PATH="$PWD/src/bin:$PATH"
cd docs
cd website
npm install
npm run themes
cd ..
@ -59,6 +59,6 @@ jobs:
action: "upload"
###### 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
app_location: "/docs" # App source code path
api_location: "/docs/api" # Api source code path - optional
app_location: "/website" # App source code path
api_location: "/website/api" # Api source code path - optional
output_location: "build" # Built app content directory - optional

4
.vscode/launch.json vendored
View file

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

10
.vscode/tasks.json vendored
View file

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

View file

@ -2,7 +2,7 @@
<p align="center">
<img
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"
/>
</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
`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
[go-text-template]: https://golang.org/pkg/text/template/
[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
[themes]: https://github.com/JanDeDobbeleer/oh-my-posh/tree/main/themes
[docs]: https://github.com/JanDeDobbeleer/oh-my-posh/tree/main/docs/docs/segments
[sidebars]: https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/docs/sidebars.js
[docs]: https://github.com/JanDeDobbeleer/oh-my-posh/tree/main/website/docs/segments
[sidebars]: https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/website/sidebars.js
[nf-icons]: https://www.nerdfonts.com/cheat-sheet
[tests]: https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/src/segments/az_test.go
[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
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.
- Recommended extensions available for a smooth bootstrap.
@ -76,7 +76,7 @@ Once the extensions are installed:
#### 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": {
@ -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
[omp]: https://github.com/JanDeDobbeleer/oh-my-posh
[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