From e0e2c3c6156623bba9ee56c26c40e6e69e466148 Mon Sep 17 00:00:00 2001 From: Haris Orgn Date: Thu, 29 Aug 2024 16:10:26 +0300 Subject: [PATCH 01/12] add permissions --- .github/workflows/Documentation.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml index cde1711..38217bb 100644 --- a/.github/workflows/Documentation.yml +++ b/.github/workflows/Documentation.yml @@ -10,6 +10,11 @@ on: jobs: build: + permissions: + actions: write + contents: write + pull-requests: read + statuses: write runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -26,6 +31,6 @@ jobs: - uses: julia-actions/julia-processcoverage@v1 with: directories: src - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 with: files: lcov.info From 74e6a4f72fb70a98ff9097ca3830919ef66c6090 Mon Sep 17 00:00:00 2001 From: Haris Orgn Date: Thu, 29 Aug 2024 16:10:35 +0300 Subject: [PATCH 02/12] update make --- docs/make.jl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/docs/make.jl b/docs/make.jl index 1662eba..ab4e91f 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -1,9 +1,6 @@ using Neuroblox using Documenter -cp("./docs/Manifest.toml", "./docs/src/assets/Manifest.toml", force = true) -cp("./docs/Project.toml", "./docs/src/assets/Project.toml", force = true) - DocMeta.setdocmeta!(Neuroblox, :DocTestSetup, :(using Neuroblox); recursive = true) include("pages.jl") @@ -11,13 +8,12 @@ include("pages.jl") makedocs(sitename = "Neuroblox", authors = "Neuroblox Inc.", modules = [Neuroblox], - clean = true, doctest = false, linkcheck = true, + clean = true, doctest = false, linkcheck = false, warnonly = [:docs_block, :missing_docs], format = Documenter.HTML(assets = ["assets/favicon.ico"]), - #canonical = "https://docs.sciml.ai/LinearSolve/stable/"), pages = pages) -repo = "github.com/Neuroblox/NeurobloxDocsHost" +repo = "github.com/Neuroblox/NeurobloxDocsHost.git" withenv("GITHUB_REPOSITORY" => repo) do deploydocs(; repo = repo, push_preview = true) From bf68f73c3d094d6d5ff68d7727fdad976d7996cc Mon Sep 17 00:00:00 2001 From: Haris Orgn Date: Thu, 29 Aug 2024 16:16:46 +0300 Subject: [PATCH 03/12] move `Project.toml` --- docs/Project.toml => Project.toml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename docs/Project.toml => Project.toml (100%) diff --git a/docs/Project.toml b/Project.toml similarity index 100% rename from docs/Project.toml rename to Project.toml From 1b236acbd29bd3e1c77d69e35c54ecd09d9473db Mon Sep 17 00:00:00 2001 From: Haris Orgn Date: Thu, 29 Aug 2024 16:19:08 +0300 Subject: [PATCH 04/12] add name to `Project.toml` --- Project.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Project.toml b/Project.toml index f7d5dbc..00fd752 100644 --- a/Project.toml +++ b/Project.toml @@ -1,3 +1,5 @@ +name = "NeurobloxDocsHost" + [deps] CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b" DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" From 17e493ef97c36cece3dca83a2130d79d3f107872 Mon Sep 17 00:00:00 2001 From: Haris Orgn Date: Thu, 29 Aug 2024 16:53:43 +0300 Subject: [PATCH 05/12] add uuid --- Project.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Project.toml b/Project.toml index 00fd752..148ce78 100644 --- a/Project.toml +++ b/Project.toml @@ -1,4 +1,5 @@ name = "NeurobloxDocsHost" +uuid = "1bb98921-23b1-4067-a5f0-d1e925508412" [deps] CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b" From 54cd07a780e26a57cb4bcd6bc8b099549ac79bec Mon Sep 17 00:00:00 2001 From: Haris Orgn Date: Thu, 29 Aug 2024 17:24:49 +0300 Subject: [PATCH 06/12] add dummy src file --- src/NeurobloxDocsHost.jl | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 src/NeurobloxDocsHost.jl diff --git a/src/NeurobloxDocsHost.jl b/src/NeurobloxDocsHost.jl new file mode 100644 index 0000000..0e7b5ed --- /dev/null +++ b/src/NeurobloxDocsHost.jl @@ -0,0 +1,3 @@ +module NeurobloxDocsHost + +end \ No newline at end of file From 23f2bca1435d2900def4622ce671a83dc1b048d6 Mon Sep 17 00:00:00 2001 From: Haris Orgn Date: Fri, 30 Aug 2024 14:12:03 +0300 Subject: [PATCH 07/12] restore the copies for reproducibility --- docs/make.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/make.jl b/docs/make.jl index ab4e91f..2024493 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -3,6 +3,9 @@ using Documenter DocMeta.setdocmeta!(Neuroblox, :DocTestSetup, :(using Neuroblox); recursive = true) +cp("./docs/Manifest.toml", "./docs/src/assets/Manifest.toml", force = true) +cp("./docs/Project.toml", "./docs/src/assets/Project.toml", force = true) + include("pages.jl") makedocs(sitename = "Neuroblox", From 23ec2bfa0bf6ac378d0fa07973ef5a2ec382b164 Mon Sep 17 00:00:00 2001 From: Haris Orgn Date: Fri, 30 Aug 2024 14:12:20 +0300 Subject: [PATCH 08/12] add dummy Project.toml --- Project.toml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/Project.toml b/Project.toml index 148ce78..06f37cf 100644 --- a/Project.toml +++ b/Project.toml @@ -1,18 +1,2 @@ name = "NeurobloxDocsHost" uuid = "1bb98921-23b1-4067-a5f0-d1e925508412" - -[deps] -CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b" -DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" -DifferentialEquations = "0c46a032-eb83-5123-abaf-570d42b7fbaa" -Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" -Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6" -HypothesisTests = "09f84164-cd44-5f33-b23f-e6b0d136a0d5" -MetaGraphs = "626554b9-1ddb-594c-aa3c-2596fe9399a5" -Neuroblox = "769b91e5-4c60-41ee-bfae-153c84203cb2" -Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" -Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" -Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" - -[compat] -Documenter = "1" From 1eb9a486a7663e982ca00b10d1f95a601a482136 Mon Sep 17 00:00:00 2001 From: Haris Orgn Date: Fri, 30 Aug 2024 14:12:39 +0300 Subject: [PATCH 09/12] move docs/Project.toml to its original place --- docs/Project.toml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 docs/Project.toml diff --git a/docs/Project.toml b/docs/Project.toml new file mode 100644 index 0000000..f7d5dbc --- /dev/null +++ b/docs/Project.toml @@ -0,0 +1,15 @@ +[deps] +CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b" +DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" +DifferentialEquations = "0c46a032-eb83-5123-abaf-570d42b7fbaa" +Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" +Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6" +HypothesisTests = "09f84164-cd44-5f33-b23f-e6b0d136a0d5" +MetaGraphs = "626554b9-1ddb-594c-aa3c-2596fe9399a5" +Neuroblox = "769b91e5-4c60-41ee-bfae-153c84203cb2" +Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" +Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" +Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" + +[compat] +Documenter = "1" From aacd754541ce0138f52ffda7c3d39ae1c42e8e24 Mon Sep 17 00:00:00 2001 From: Haris Orgn Date: Fri, 30 Aug 2024 14:13:20 +0300 Subject: [PATCH 10/12] enable linkcheck again --- docs/make.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/make.jl b/docs/make.jl index 2024493..c4111ae 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -11,7 +11,7 @@ include("pages.jl") makedocs(sitename = "Neuroblox", authors = "Neuroblox Inc.", modules = [Neuroblox], - clean = true, doctest = false, linkcheck = false, + clean = true, doctest = false, linkcheck = true, warnonly = [:docs_block, :missing_docs], format = Documenter.HTML(assets = ["assets/favicon.ico"]), pages = pages) From 49f3b3891249f09c507d2bae4e81eb8871db274d Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Fri, 30 Aug 2024 08:00:46 -0400 Subject: [PATCH 11/12] Update Documentation.yml --- .github/workflows/Documentation.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml index 38217bb..13286e9 100644 --- a/.github/workflows/Documentation.yml +++ b/.github/workflows/Documentation.yml @@ -22,11 +22,11 @@ jobs: with: version: '1' - name: Install dependencies - run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' + run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(url="git@github.com:Neuroblox/Neuroblox.jl.git")); Pkg.instantiate()' - name: Build and deploy env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token - DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key + DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY_DEPLOY }} # For authentication with SSH deploy key run: julia --project=docs/ --code-coverage=user docs/make.jl - uses: julia-actions/julia-processcoverage@v1 with: From e7fc83dba8e21164bf4d4d124bfd8dd246bf70b6 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Fri, 30 Aug 2024 08:46:42 -0400 Subject: [PATCH 12/12] Update Documentation.yml --- .github/workflows/Documentation.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml index 13286e9..848cd7b 100644 --- a/.github/workflows/Documentation.yml +++ b/.github/workflows/Documentation.yml @@ -21,6 +21,10 @@ jobs: - uses: julia-actions/setup-julia@latest with: version: '1' + - name: "Start SSH agent" + uses: "webfactory/ssh-agent@d4b9b8ff72958532804b70bbe600ad43b36d5f2e" # v0.8.0 + with: + ssh-private-key: "${{ secrets.DOCUMENTER_KEY }}" - name: Install dependencies run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(url="git@github.com:Neuroblox/Neuroblox.jl.git")); Pkg.instantiate()' - name: Build and deploy