mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
* Updated overview docs * Updated toc * Updated docs more * Updated yml via dependabot * Initial work in progress * Fixed some autosize things * Revamped Pos / Dim API docs * Removed margin * horiz->width * Updated MessageBoxes and Dialogs Scenarios to use AutoSize * AutoSize->Auxo * Adds validation * prep for Dialog to use Dim.Auto - Simplify unit tests to not depend on things not important to the unit test (like Dialog) * prep for Dialog to use Dim.Auto - Simplify unit tests * prep for Dialog to use Dim.Auto - Simplify unit tests * prep for Dialog to use Dim.Auto - Make Dialog tests not depend on MessageBox * Started on DimAuto unit tests * started impl on min/max. * started impl on min/max. * Added DimAutoStyle * Added arg checking for not implemented features * Temporarily made DimAutoStyle.Subviews default * Removed unneeded override of Anchor * Fixed GethashCode warning * Implemented DimAuto(min) * Fixed unit tests * renamed scenario * WIP * Moved ViewLayout.cs into Layout folder * Clean up cocde formatting * Renamed and moved SetFrameToFitText * Fixed API docs for SetRelativeLayout * Factored out SetRelativeLayout tests * Better documented existing SetRelativeLayout behavior + unit tess * Debugging Pos.Center + x in SetRelativeLayout - WIP * Progress on low level unit tess * Initial commit * Restored unmodified scenarios * Bump deps
58 lines
1.7 KiB
YAML
58 lines
1.7 KiB
YAML
name: Build and publish API docs
|
|
|
|
on:
|
|
push:
|
|
branches: [main, develop, v2_develop]
|
|
|
|
permissions:
|
|
id-token: write
|
|
pages: write
|
|
|
|
jobs:
|
|
deploy:
|
|
name: Build and Deploy API docs to github-pages ${{ github.ref_name }}
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Checkout
|
|
if: github.ref_name == 'main' || github.ref_name == 'develop'
|
|
uses: actions/checkout@v4
|
|
|
|
- name: DocFX Build
|
|
if: github.ref_name == 'main' || github.ref_name == 'develop'
|
|
working-directory: docfx
|
|
run: |
|
|
dotnet tool install -g docfx
|
|
$env:DOCFX_SOURCE_BRANCH_NAME="${{ github.ref_name }}"
|
|
docfx metadata
|
|
docfx build
|
|
continue-on-error: false
|
|
|
|
- name: Setup Pages
|
|
if: github.ref_name == 'main' || github.ref_name == 'develop'
|
|
uses: actions/configure-pages@v4
|
|
|
|
- name: Upload artifact
|
|
if: github.ref_name == 'main' || github.ref_name == 'develop'
|
|
uses: actions/upload-pages-artifact@v3
|
|
with:
|
|
path: docfx/_site
|
|
|
|
- name: Deploy to GitHub Pages
|
|
if: github.ref_name == 'main' || github.ref_name == 'develop'
|
|
id: deployment
|
|
uses: actions/deploy-pages@v4
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: v2_develop Repository Dispatch ${{ github.ref_name }}
|
|
if: github.ref_name == 'v2_develop'
|
|
uses: peter-evans/repository-dispatch@v2
|
|
with:
|
|
token: ${{ secrets.V2DOCS_TOKEN }}
|
|
repository: gui-cs/Terminal.GuiV2Docs
|
|
event-type: v2_develop_push
|
|
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
|