Skip to content

Commit

Permalink
Fix some bugs with the documentation site.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKWatkins committed May 11, 2023
1 parent 1c17c82 commit 3022e83
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 11 deletions.
7 changes: 2 additions & 5 deletions .github/actions/documentation/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@ runs:
using: composite

steps:
- name: Install DocFX
shell: bash
run: dotnet tool update -g docfx

- name: Build Documentation
shell: bash
run: docfx doc/docfx.json
working-directory: ./doc
run: ./build.sh

- name: Setup Pages
if: ${{ inputs.deploy == 'true' }}
Expand Down
11 changes: 11 additions & 0 deletions doc/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

echo "Installing DocFX..."
dotnet tool update -g docfx

echo "Building documentation..."
docfx

echo "Post-processing documentation..."
rm _site/logo.svg
sed _site/api/*.html -i -e 's|<a class="xref" href="MrKWatkins.html">MrKWatkins</a>.<a class="xref" href="MrKWatkins.Ast.html">Ast</a>|<a class="xref" href="MrKWatkins.Ast.html">MrKWatkins.Ast</a>|g'
8 changes: 4 additions & 4 deletions doc/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
},
{
"files": [
"articles/**.md",
"articles/**/toc.yml",
"toc.yml",
"*.md"
]
Expand All @@ -33,7 +31,9 @@
"resource": [
{
"files": [
"images/**"
"images/**",
"index.html",
"favicon.ico"
]
}
],
Expand All @@ -50,7 +50,7 @@
"globalMetadata": {
"_appTitle": "MrKWatkins.Ast",
"_appName": "MrKWatkins.Ast",
"_appFaviconPath": "images/favicon.ico",
"_appFaviconPath": "favicon.ico",
"_appLogoPath": "images/logo.png",
"_appFooter": "Created with <a href=\"https://dotnet.github.io/docfx\" target=\"_blank\">DocFX</a> and <a href=\"https://github.com/Singulink/SingulinkFX\" target=\"_blank\">SingulinkFX</a>",
"_disableContribution": true
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions doc/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url=home.html" />
</head>
<body>
</body>
</html>
4 changes: 2 additions & 2 deletions doc/toc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- name: Documentation
href: index.md
- name: Home
href: home.md

- name: API
href: api/

0 comments on commit 3022e83

Please sign in to comment.