diff --git a/.github/renovate.json b/.github/renovate.json index 87da64a9..f4ffa1c4 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -9,12 +9,10 @@ "npm": { "ignorePaths": [ "**/node_modules/**", - "**/bower_components/**", - "docs/**" + "**/bower_components/**" ] }, "ignorePaths": [ - "resources/scripts/**", - "docs/**" + "resources/scripts/**" ] } diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 42ac91b4..39fd45a4 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -55,44 +55,4 @@ jobs: dotnet make publish --sign \ --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 \ No newline at end of file + --keyvaultCertificate="${{secrets.SIGN_KEYVAULT_CERTIFICATE}}" \ No newline at end of file diff --git a/README.fa.md b/README.fa.md index 3ebcd935..70a82d52 100644 --- a/README.fa.md +++ b/README.fa.md @@ -24,7 +24,7 @@ _[![Spectre.Console NuGet Version](https://img.shields.io/nuget/v/spectre.consol این کتابخانه توانایی ترمینال فعلی را تشخیص داده و در صورت لزوم رنگ‌ها را کاهش می‌دهد. -![Example](docs/input/assets/images/example.png) +![Example](resources/example.png)

نصب

diff --git a/README.jp.md b/README.jp.md index 6f3c55fe..2229022d 100644 --- a/README.jp.md +++ b/README.jp.md @@ -29,7 +29,7 @@ Python用の素晴らしい[Rich ライブラリ](https://github.com/willmcgugan ## 例 -![Example](docs/input/assets/images/example.png) +![Example](resources/example.png) ## 使用方法 @@ -294,10 +294,6 @@ table.AddRow(new Markup("[blue]Corgi[/]"), new Panel("Waldo")); AnsiConsole.Render(table); ``` -これは次のように出力を描画します。 - -![Table](docs/input/assets/images/table.png) - ### 罫線 @@ -373,21 +369,17 @@ column.Width = 15; AnsiConsole.WriteException(ex); ``` -![exception](docs/input/assets/images/exception.png) ### 例外の省略表示 例外の特定部分を短くして、さらに読みやすくしたり、パスをクリック可能なハイパーリンクにすることもできます。 ハイパーリンクがクリックできるかはターミナル次第です。 - ```csharp AnsiConsole.WriteException(ex, ExceptionFormats.ShortenPaths | ExceptionFormats.ShortenTypes | ExceptionFormats.ShortenMethods | ExceptionFormats.ShowLinks); ``` -![exception](docs/input/assets/images/compact_exception.png) - ### 例外出力のカスタマイズ 例外の特定部分を短縮するだけでなく、デフォルトのスタイルを上書きすることもできます。 @@ -409,6 +401,4 @@ AnsiConsole.WriteException(ex, new ExceptionSettings LineNumber = Style.WithForeground(Color.Cornsilk1), } }); -``` - -![exception](docs/input/assets/images/custom_exception.png) \ No newline at end of file +``` \ No newline at end of file diff --git a/README.md b/README.md index 0380629e..76a663b8 100644 --- a/README.md +++ b/README.md @@ -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. -![Example](docs/input/assets/images/example.png) +![Example](これは次のように出力を描画します。/example.png) ## Important Notices diff --git a/README.pt-BR.md b/README.pt-BR.md index ea15a20c..be6a24af 100644 --- a/README.pt-BR.md +++ b/README.pt-BR.md @@ -25,7 +25,7 @@ para Python. A biblioteca detectará os recursos do terminal atual e reduz as cores conforme necessário. -![Exemplo](docs/input/assets/images/example.png) +![Exemplo](resources/example.png) ## Instalação diff --git a/README.zh.md b/README.zh.md index a775b1f9..9e847cde 100644 --- a/README.zh.md +++ b/README.zh.md @@ -21,7 +21,7 @@ _[![Spectre.Console NuGet Version](https://img.shields.io/nuget/v/spectre.consol * 支持大部分的 SRG 参数,包括粗体、暗淡字、斜体、下划线、删除线和闪烁文本。 * 支持终端显示 3/4/8/24 位色。自动检测终端类型,自适应颜色范围。 -![例子](docs/input/assets/images/example.png) +![例子](resources/example.png) ## 安装 diff --git a/resources/example.png b/resources/example.png new file mode 100644 index 00000000..2c58bd58 Binary files /dev/null and b/resources/example.png differ diff --git a/resources/scripts/Generate-Emoji.ps1 b/resources/scripts/Generate-Emoji.ps1 index 41dee102..50452a76 100755 --- a/resources/scripts/Generate-Emoji.ps1 +++ b/resources/scripts/Generate-Emoji.ps1 @@ -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 @@ -23,5 +22,4 @@ if(!$?) { 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" \ No newline at end of file +Copy-Item (Join-Path "$Output" "Emoji.Generated.cs") -Destination "$Source/Emoji.Generated.cs" \ No newline at end of file diff --git a/resources/scripts/Generate-Samples.ps1 b/resources/scripts/Generate-Samples.ps1 deleted file mode 100755 index 3843cf40..00000000 --- a/resources/scripts/Generate-Samples.ps1 +++ /dev/null @@ -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 \ No newline at end of file