Skip to content

Commit befb063

Browse files
committedSep 16, 2022
Merge branch 'develop' of tig:gui-cs/Terminal.Gui into develop
2 parents 1a1460e + c6001c7 commit befb063

File tree

347 files changed

+561
-196683
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

347 files changed

+561
-196683
lines changed
 

‎.github/workflows/api-docs.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Build and publish API docs
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
generate-docs:
9+
runs-on: windows-latest
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
15+
- name: Setup .NET Core
16+
uses: actions/setup-dotnet@v1
17+
with:
18+
dotnet-version: 6.0.100
19+
20+
- name: Setup DocFX
21+
uses: crazy-max/ghaction-chocolatey@v1
22+
with:
23+
args: install docfx
24+
25+
- name: Install dependencies
26+
run: dotnet restore
27+
28+
- name: DocFX Build
29+
working-directory: docfx
30+
# https://stackoverflow.com/questions/56726429/how-to-run-multiple-commands-in-one-github-actions-docker
31+
run: |
32+
rm ../docs -Recurse -Force
33+
docfx docfx.json
34+
continue-on-error: false
35+
36+
- name: Publish
37+
if: github.event_name == 'push'
38+
uses: peaceiris/actions-gh-pages@v3
39+
with:
40+
github_token: ${{ secrets.GITHUB_TOKEN }}
41+
publish_dir: docs
42+
force_orphan: true
43+
44+
# - name: Use docfx to build API Docs
45+
# uses: nikeee/docfx-action@v1.0.0
46+
# with:
47+
# args: docfx/docfx.json
48+
49+
# # Publish generated site using GitHub Pages
50+
# - uses: maxheld83/ghpages@master
51+
# name: Publish API Documentation on GitHub Pages
52+
# env:
53+
# BUILD_DIR: docs # docfx's default output directory is _site
54+
# GH_PAT: ${{ secrets.GH_PAT }} # See https://github.com/maxheld83/ghpages

‎.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ packages
88
# User-specific files
99
*.user
1010

11+
# API Docs
1112
docfx/api
1213

14+
# Never push ./docs folder - the gh-pages branch is now used to publish to GH Pages
15+
1316
UnitTests/TestResults
1417

1518
#git merge files

0 commit comments

Comments
 (0)
Please sign in to comment.