From 044d7cac8c56723d0d4c985d6177e6f100111515 Mon Sep 17 00:00:00 2001 From: nojaf Date: Wed, 13 Dec 2023 11:23:57 +0100 Subject: [PATCH] chore: Update to fsdocs --- .config/dotnet-tools.json | 4 +- .github/workflows/release.yml | 14 ++++++ Argu.sln | 29 ++++++------ Directory.Build.props | 6 +++ build.fsx | 18 +------- docs/_template.html | 82 ---------------------------------- docs/img/favicon.ico | Bin 0 -> 165662 bytes 7 files changed, 38 insertions(+), 115 deletions(-) delete mode 100644 docs/_template.html create mode 100644 docs/img/favicon.ico diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index ae3d1e32..1674353d 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -20,8 +20,8 @@ "sourcelink" ] }, - "fsharp.formatting.commandtool": { - "version": "7.2.9", + "fsdocs-tool": { + "version": "20.0.0-alpha-016", "commands": [ "fsdocs" ] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ffc08b44..a732b9ca 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,3 +31,17 @@ jobs: env: NUGET_KEY: ${{ secrets.NUGET_KEY }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # Upload the static files + - name: Upload documentation + uses: actions/upload-pages-artifact@v2 + with: + path: ./output + + # GitHub Actions recommends deploying in a separate job. + DeployDocs: + runs-on: ubuntu-latest + needs: Release + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 diff --git a/Argu.sln b/Argu.sln index 9416f460..15447c27 100644 --- a/Argu.sln +++ b/Argu.sln @@ -2,33 +2,33 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.27428.2002 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Argu", "src\Argu\Argu.fsproj", "{D3E958F9-5FFF-462E-BDC7-A03272A9F5D9}" +Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Argu", "src\Argu\Argu.fsproj", "{D3E958F9-5FFF-462E-BDC7-A03272A9F5D9}" EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Argu.Samples.LS", "samples\Argu.Samples.LS\Argu.Samples.LS.fsproj", "{E0563A30-4451-4DF2-9D21-26C76EB85C22}" +Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Argu.Samples.LS", "samples\Argu.Samples.LS\Argu.Samples.LS.fsproj", "{E0563A30-4451-4DF2-9D21-26C76EB85C22}" EndProject -Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Argu.Tests", "tests\Argu.Tests\Argu.Tests.fsproj", "{8E234746-5098-4400-98F1-62C77AB91711}" +Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Argu.Tests", "tests\Argu.Tests\Argu.Tests.fsproj", "{8E234746-5098-4400-98F1-62C77AB91711}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".config", ".config", "{6CAC8891-E2B6-4CC8-AACF-0AAA4F2A49D0}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".config", ".config", "{6CAC8891-E2B6-4CC8-AACF-0AAA4F2A49D0}" ProjectSection(SolutionItems) = preProject .config\dotnet-tools.json = .config\dotnet-tools.json EndProjectSection EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{83FE66F8-6E59-4178-8962-11117B51F39C}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{83FE66F8-6E59-4178-8962-11117B51F39C}" ProjectSection(SolutionItems) = preProject .github\ISSUE_TEMPLATE.md = .github\ISSUE_TEMPLATE.md EndProjectSection EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{EE42293D-9398-4EF4-B151-9DE992EBB85A}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{EE42293D-9398-4EF4-B151-9DE992EBB85A}" ProjectSection(SolutionItems) = preProject .github\workflows\build.yml = .github\workflows\build.yml EndProjectSection EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".paket", ".paket", "{306D68AD-1E01-4367-9498-EF4CEDE0AF38}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".paket", ".paket", "{306D68AD-1E01-4367-9498-EF4CEDE0AF38}" ProjectSection(SolutionItems) = preProject .paket\Paket.Restore.targets = .paket\Paket.Restore.targets EndProjectSection EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{2687163A-E0EA-4EC6-A388-430314AA8C85}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{2687163A-E0EA-4EC6-A388-430314AA8C85}" ProjectSection(SolutionItems) = preProject .dockerignore = .dockerignore .gitignore = .gitignore @@ -50,30 +50,29 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution RELEASE_NOTES.md = RELEASE_NOTES.md EndProjectSection EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{C9E28045-41C6-422E-9928-4220EF3FF19B}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{C9E28045-41C6-422E-9928-4220EF3FF19B}" ProjectSection(SolutionItems) = preProject - docs\_template.html = docs\_template.html docs\index.fsx = docs\index.fsx docs\perf.fsx = docs\perf.fsx docs\tutorial.fsx = docs\tutorial.fsx EndProjectSection EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "img", "img", "{10ED3503-22F2-42EF-8B35-C979A5B700D0}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "img", "img", "{10ED3503-22F2-42EF-8B35-C979A5B700D0}" ProjectSection(SolutionItems) = preProject docs\img\logo.pdn = docs\img\logo.pdn docs\img\logo.png = docs\img\logo.png EndProjectSection EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "resource", "resource", "{B1E24C6F-9B2C-4102-B99A-9065B5745E6F}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "resource", "resource", "{B1E24C6F-9B2C-4102-B99A-9065B5745E6F}" ProjectSection(SolutionItems) = preProject resource\logo.png = resource\logo.png EndProjectSection EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{A15390A5-BC39-433F-BA25-8775B4C2E329}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{A15390A5-BC39-433F-BA25-8775B4C2E329}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{93AB3CBB-7714-49DD-9C6F-40E153A66E8F}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{93AB3CBB-7714-49DD-9C6F-40E153A66E8F}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{E40F0B06-703E-4541-826F-3B8AED67AF7B}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{E40F0B06-703E-4541-826F-3B8AED67AF7B}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/Directory.Build.props b/Directory.Build.props index e9e62fb1..a26a527a 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -21,4 +21,10 @@ + + + + https://github.com/fsprojects/Argu/blob/master/LICENSE.md + https://github.com/fsprojects/Argu/blob/master/RELEASE_NOTES.md + diff --git a/build.fsx b/build.fsx index a03cc1ed..59c3c19e 100644 --- a/build.fsx +++ b/build.fsx @@ -123,21 +123,7 @@ Target.create "NuGet.Push" (fun _ -> Target.create "GenerateDocs" (fun _ -> Shell.cleanDir ".fsdocs" - DotNet.exec id "fsdocs" "build --clean --strict --property Configuration=Release" |> ignore -) - -Target.create "ReleaseDocs" (fun _ -> - let tempDocsDir = "temp/gh-pages" - let outputDocsDir = "output/" - - Directory.ensure outputDocsDir - - Shell.cleanDir tempDocsDir - Git.Repository.cloneSingleBranch "" (gitHome + "/" + gitName + ".git") "gh-pages" tempDocsDir - Shell.copyRecursive outputDocsDir tempDocsDir true |> Trace.tracefn "%A" - Git.Staging.stageAll tempDocsDir - Git.Commit.exec tempDocsDir (sprintf "Update generated documentation for version %s" release.NugetVersion) - Git.Branches.push tempDocsDir + DotNet.exec id "fsdocs" "build --clean --strict --properties Configuration=Release" |> ignore ) // Github Releases @@ -203,7 +189,7 @@ Target.create "Release" ignore ==> "Bundle" "Bundle" - ==> "ReleaseDocs" + ==> "GenerateDocs" ==> "ReleaseGitHub" ==> "NuGet.Push" ==> "Release" diff --git a/docs/_template.html b/docs/_template.html deleted file mode 100644 index 2d5831a5..00000000 --- a/docs/_template.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - {{fsdocs-page-title}} - - - - - - - - - - - - - - - - - - - - - - - - -
- -
-
- {{fsdocs-content}} - {{fsdocs-tooltips}} -
- - - - - - - - -
- - - diff --git a/docs/img/favicon.ico b/docs/img/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..3d87bbc0a635f306e4a0ab552f0f84f09935f5c6 GIT binary patch literal 165662 zcmeI5*15~0W0zMeUVYm6e?CPZ~*OMr6h>&o}lZE9+14|AmDt`S0Jd{!;PhtiNVuW&K?q z@~5nWfAaq>PqVUq`E%B_|H)E^`dj{U`N5#zK^ss5)BrU=4NwEr05w1jPy^HeH9!qe z1JnRDKn+j>)BrU=4NwEr05w1jPy^HeH9!qe1JnRDKn+j>)BrU=4NwEr05w1jIIV$+ zOC93ySe@t?tjgG_4$1_KXFGpOs-Dit^ zoKBY*zPt0j&Lh{lMxMRZD{>3>itPN~ z#DkUF;>W)~XZ*4D_JzgB*oC&F?8CI(-D$hi-)HQ6n@Veu=6?NsJLB2Vd?O!3d2#SW zBl%z+lCTC$KD4&H;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