mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2025-12-26 07:47:56 +01:00
Remove documentation
This commit is contained in:
6
.github/renovate.json
vendored
6
.github/renovate.json
vendored
@@ -9,12 +9,10 @@
|
||||
"npm": {
|
||||
"ignorePaths": [
|
||||
"**/node_modules/**",
|
||||
"**/bower_components/**",
|
||||
"docs/**"
|
||||
"**/bower_components/**"
|
||||
]
|
||||
},
|
||||
"ignorePaths": [
|
||||
"resources/scripts/**",
|
||||
"docs/**"
|
||||
"resources/scripts/**"
|
||||
]
|
||||
}
|
||||
|
||||
40
.github/workflows/publish.yaml
vendored
40
.github/workflows/publish.yaml
vendored
@@ -56,43 +56,3 @@ jobs:
|
||||
--nuget-key="${{secrets.NUGET_API_KEY}}" \
|
||||
--keyvaultUrl="${{secrets.SIGN_KEYVAULT_URL}}" \
|
||||
--keyvaultCertificate="${{secrets.SIGN_KEYVAULT_CERTIFICATE}}"
|
||||
|
||||
###################################################
|
||||
# DOCS
|
||||
###################################################
|
||||
|
||||
documentation:
|
||||
name: Publish Documentation
|
||||
needs: [build]
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup .NET SDK
|
||||
uses: actions/setup-dotnet@v5
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: '24'
|
||||
|
||||
- name: Cache dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: npm-${{ hashFiles('package-lock.json') }}
|
||||
restore-keys: npm-
|
||||
|
||||
- name: Publish Documentation
|
||||
shell: bash
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
NETLIFY_ACCESS_TOKEN: ${{ secrets.NETLIFY_ACCESS_TOKEN }}
|
||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
||||
run: |
|
||||
cd docs
|
||||
dotnet tool restore
|
||||
dotnet run --configuration Release -- deploy
|
||||
@@ -24,7 +24,7 @@ _[
|
||||

|
||||
|
||||
<h2 id="installing">نصب</h2>
|
||||
|
||||
|
||||
12
README.jp.md
12
README.jp.md
@@ -29,7 +29,7 @@ Python用の素晴らしい[Rich ライブラリ](https://github.com/willmcgugan
|
||||
|
||||
## 例
|
||||
|
||||

|
||||

|
||||
|
||||
## 使用方法
|
||||
|
||||
@@ -294,10 +294,6 @@ table.AddRow(new Markup("[blue]Corgi[/]"), new Panel("Waldo"));
|
||||
AnsiConsole.Render(table);
|
||||
```
|
||||
|
||||
これは次のように出力を描画します。
|
||||
|
||||

|
||||
|
||||
### 罫線
|
||||
|
||||
|
||||
@@ -373,21 +369,17 @@ column.Width = 15;
|
||||
AnsiConsole.WriteException(ex);
|
||||
```
|
||||
|
||||

|
||||
### 例外の省略表示
|
||||
|
||||
例外の特定部分を短くして、さらに読みやすくしたり、パスをクリック可能なハイパーリンクにすることもできます。
|
||||
ハイパーリンクがクリックできるかはターミナル次第です。
|
||||
|
||||
|
||||
```csharp
|
||||
AnsiConsole.WriteException(ex,
|
||||
ExceptionFormats.ShortenPaths | ExceptionFormats.ShortenTypes |
|
||||
ExceptionFormats.ShortenMethods | ExceptionFormats.ShowLinks);
|
||||
```
|
||||
|
||||

|
||||
|
||||
### 例外出力のカスタマイズ
|
||||
|
||||
例外の特定部分を短縮するだけでなく、デフォルトのスタイルを上書きすることもできます。
|
||||
@@ -410,5 +402,3 @@ AnsiConsole.WriteException(ex, new ExceptionSettings
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||

|
||||
@@ -26,7 +26,7 @@ It is heavily inspired by the excellent Python library, [Rich](https://github.co
|
||||
and downgrade colors as needed.
|
||||
* Written with unit testing in mind.
|
||||
|
||||

|
||||

|
||||
|
||||
## Important Notices
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ para Python.
|
||||
A biblioteca detectará os recursos do terminal atual
|
||||
e reduz as cores conforme necessário.
|
||||
|
||||

|
||||

|
||||
|
||||
## Instalação
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ _[
|
||||

|
||||
|
||||
## 安装
|
||||
|
||||
|
||||
BIN
resources/example.png
Normal file
BIN
resources/example.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 219 KiB |
@@ -7,7 +7,6 @@
|
||||
$Output = Join-Path $PSScriptRoot "Temp"
|
||||
$Generator = Join-Path $PSScriptRoot "/../../src/Generator"
|
||||
$Source = Join-Path $PSScriptRoot "/../../src/Spectre.Console"
|
||||
$Docs = Join-Path $PSScriptRoot "/../../docs/src/Data"
|
||||
|
||||
if(!(Test-Path $Output -PathType Container)) {
|
||||
New-Item -ItemType Directory -Path $Output | Out-Null
|
||||
@@ -24,4 +23,3 @@ Pop-Location
|
||||
|
||||
# Copy the files to the correct location
|
||||
Copy-Item (Join-Path "$Output" "Emoji.Generated.cs") -Destination "$Source/Emoji.Generated.cs"
|
||||
Copy-Item (Join-Path "$Output" "emojis.json") -Destination "$Docs/emojis.json"
|
||||
@@ -1,24 +0,0 @@
|
||||
#!/usr/local/bin/pwsh
|
||||
|
||||
[CmdletBinding(PositionalBinding=$false)]
|
||||
Param(
|
||||
[Parameter(ValueFromRemainingArguments)]
|
||||
[string[]]$Remaining
|
||||
)
|
||||
|
||||
# first arg is either the name of a single sample you want to run or leave
|
||||
# blank if you want to run them all. the samples aren't going to run at the same
|
||||
# speed each time so if you run all of them you'll have everything as a change
|
||||
# for your commit so use this sparingly.
|
||||
|
||||
$Generator = Join-Path $PSScriptRoot "/../../src/Generator"
|
||||
$Output = Join-Path $PSScriptRoot "../../docs/input/assets/casts"
|
||||
|
||||
# Generate the files
|
||||
Push-Location $Generator
|
||||
&dotnet run -- samples -o "$Output" $Remaining
|
||||
if(!$?) {
|
||||
Pop-Location
|
||||
Throw "An error occured when generating code."
|
||||
}
|
||||
Pop-Location
|
||||
Reference in New Issue
Block a user