Skip to content

Commit f0ecf29

Browse files
author
AppVeyor Doc Generation
committed
Updated docs.cmd - Works?
1 parent 25e126b commit f0ecf29

4 files changed

Lines changed: 20 additions & 25 deletions

File tree

‎SpotifyAPI.Docs/.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
site/
2+
deploy/

‎SpotifyAPI.Docs/docs.cmd‎

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,25 @@
11
if "%APPVEYOR_PULL_REQUEST_NUMBER%" == "" (
22
echo Building docs...
33
pip install mkdocs
4+
45
cd ./SpotifyAPI.Docs
5-
mkdocs build
6-
cd ..
6+
mkdocs build --clean
7+
8+
mkdir deploy
9+
cd deploy
10+
11+
git config --global user.email "johnny@johnnycrazy.de"
12+
git config --global user.name "AppVeyor Doc Generation"
13+
14+
git clone --quiet --branch=gh-pages https://%GH_TOKEN%@github.com/JohnnyCrazy/SpotifyAPI-NET gh-pages
15+
cd gh-pages
16+
git rm -qrf .
17+
xcopy ..\..\site .\ /s /e /y
18+
git add -A
19+
git commit -m "Built docs | AppVeyor Build %APPVEYOR_BUILD_NUMBER%"
20+
git push -fq origin gh-pages
21+
22+
cd ../..
723
) else (
824
echo Skipping doc build
925
)

‎SpotifyAPI.Docs/mkdocs.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repo_url: 'https://github.com/JohnnyCrazy/SpotifyAPI-NET'
2020
site_author: 'JohnnyCrazy'
2121
site_description: 'API Docs for SpotifyAPI-NET'
2222
extra_javascript:
23-
- '//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js'
23+
- 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js'
2424
- 'highlight.js'
2525
markdown_extensions:
2626
- sane_lists

‎SpotifyAPI.Docs/push-ghpages.sh‎

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)