Skip to content

Commit 6d9893d

Browse files
committed
Merge #99 from branch docs-env
2 parents db490ba + fb123a2 commit 6d9893d

File tree

6 files changed

+28
-12
lines changed

6 files changed

+28
-12
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,12 @@ jobs:
111111
- uses: julia-actions/setup-julia@v2
112112
with:
113113
version: '1'
114-
- name: "Instantiate test environment"
115-
run: julia --project=test devrepl.jl
116-
- name: "Build documentation"
117-
run: julia --project=test docs/make.jl
114+
- name: Configure doc environment
115+
shell: julia --project=docs --color=yes {0}
116+
run: |
117+
using Pkg
118+
Pkg.instantiate()
119+
- uses: julia-actions/julia-docdeploy@v1
118120
env:
119121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
120122
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@ devrepl: ## Start an interactive REPL for testing and building documentation
3232
test/Manifest.toml:
3333
$(JULIA) --project=test --banner=no --startup-file=yes -e 'include("devrepl.jl")'
3434

35-
docs: test/Manifest.toml ## Build the documentation
36-
$(JULIA) --project=test docs/make.jl
35+
docs/Manifest.toml:
36+
$(JULIA) --project=docs --banner=no --startup-file=yes -e 'import Pkg; Pkg.instantiate()'
37+
38+
docs: docs/Manifest.toml ## Build the documentation
39+
$(JULIA) --project=docs docs/make.jl
3740
@echo "Done. Consider using 'make devrepl'"
3841

3942
pdf: test/Manifest.toml ## Build the documentation in PDF format

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
[DocumenterCitations.jl](https://github.com/JuliaDocs/DocumenterCitations.jl#readme) uses [Bibliography.jl](https://github.com/Humans-of-Julia/Bibliography.jl) to add support for BibTeX citations in documentation pages generated by [Documenter.jl](https://github.com/JuliaDocs/Documenter.jl).
1111

12-
By default, [DocumenterCitations.jl](https://github.com/JuliaDocs/DocumenterCitations.jl#readme) uses a numeric citation style common in the natural sciences, see e.g. the [journals of the American Physical Society](https://journals.aps.org), and the [REVTeX author's guide](https://www.ctan.org/tex-archive/macros/latex/contrib/revtex/auguide). Citations are shown in-line, as a number enclosed in square brackets, e.g., "Optimal control is a cornerstone in the development of quantum technologies [[1](#screenshot)]."
12+
By default, [DocumenterCitations.jl](https://github.com/JuliaDocs/DocumenterCitations.jl#readme) uses a numeric citation style common in the natural sciences, see e.g. the [journals of the American Physical Society](https://journals.aps.org/all_journals), and the [REVTeX author's guide](https://www.ctan.org/tex-archive/macros/latex/contrib/revtex/auguide). Citations are shown in-line, as a number enclosed in square brackets, e.g., "Optimal control is a cornerstone in the development of quantum technologies [[1](#screenshot)]."
1313

1414

1515
<img id="screenshot" src="docs/src/assets/references.png" alt="Rendered bibliography of two references, [1] and [2]" width="830px">
@@ -25,7 +25,7 @@ The `DocumenterCitations` package can be installed with [Pkg](https://pkgdocs.ju
2525
pkg> add DocumenterCitations
2626
~~~
2727

28-
In most cases, you will just want to have `DocumenterCitations` in the project that builds your documentation (e.g. [`test/Project.toml`](https://github.com/JuliaDocs/DocumenterCitations.jl/blob/master/test/Project.toml)). Thus, you can also simply add
28+
In most cases, you will just want to have `DocumenterCitations` in the project that builds your documentation (e.g. [`docs/Project.toml`](https://github.com/JuliaDocs/DocumenterCitations.jl/blob/master/docs/Project.toml)). Thus, you can also simply add
2929

3030
```
3131
DocumenterCitations = "daee34ce-89f3-4625-b898-19384cb65244"

docs/Project.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[deps]
2+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3+
DocumenterCitations = "daee34ce-89f3-4625-b898-19384cb65244"
4+
DocumenterInterLinks = "d12716ef-a0f6-4df4-a9f1-a5a34e75c656"
5+
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
6+
7+
[sources]
8+
DocumenterCitations = {path = ".."}
9+
10+
[compat]
11+
Documenter = "1.4"
12+
julia = "1.11"

docs/src/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ end
2828

2929
[DocumenterCitations.jl](https://github.com/JuliaDocs/DocumenterCitations.jl#readme) uses [Bibliography.jl](https://github.com/Humans-of-Julia/Bibliography.jl) to add support for BibTeX citations in documentation pages generated by [Documenter.jl](https://github.com/JuliaDocs/Documenter.jl).
3030

31-
By default, [DocumenterCitations.jl](https://github.com/JuliaDocs/DocumenterCitations.jl#readme) uses a numeric citation style common in the natural sciences, see e.g. the [journals of the American Physical Society](https://journals.aps.org), and the [REVTeX author's guide](https://www.ctan.org/tex-archive/macros/latex/contrib/revtex/auguide). Citations are shown in-line, as a number enclosed in square brackets, e.g., "Optimal control is a cornerstone in the development of quantum technologies [BrifNJP2010](@cite)". [Alternative styles](@ref gallery) are supported, including an [author-year style](@ref author_year_style).
31+
By default, [DocumenterCitations.jl](https://github.com/JuliaDocs/DocumenterCitations.jl#readme) uses a numeric citation style common in the natural sciences, see e.g. the [journals of the American Physical Society](https://journals.aps.org/all_journals), and the [REVTeX author's guide](https://www.ctan.org/tex-archive/macros/latex/contrib/revtex/auguide). Citations are shown in-line, as a number enclosed in square brackets, e.g., "Optimal control is a cornerstone in the development of quantum technologies [BrifNJP2010](@cite)". [Alternative styles](@ref gallery) are supported, including an [author-year style](@ref author_year_style).
3232

3333
## Installation instructions
3434

@@ -38,7 +38,7 @@ You can install the latest version of [DocumenterCitations.jl](https://github.co
3838
pkg> add DocumenterCitations
3939
```
4040

41-
In most cases, you will just want to have `DocumenterCitations` in the project that builds your documentation (e.g. [`test/Project.toml`](https://github.com/JuliaDocs/DocumenterCitations.jl/blob/master/test/Project.toml)). Thus, you can also simply add
41+
In most cases, you will just want to have `DocumenterCitations` in the project that builds your documentation (e.g. [`docs/Project.toml`](https://github.com/JuliaDocs/DocumenterCitations.jl/blob/master/docs/Project.toml)). Thus, you can also simply add
4242

4343
```
4444
DocumenterCitations = "daee34ce-89f3-4625-b898-19384cb65244"
@@ -137,7 +137,7 @@ The following is a list of some projects that use `DocumenterCitations`:
137137
* [QuantumPropagators](https://juliaquantumcontrol.github.io/QuantumPropagators.jl/)
138138
* [QuantumControl](https://juliaquantumcontrol.github.io/QuantumControl.jl/)
139139
* [TwoQubitWeylChamber](https://juliaquantumcontrol.github.io/TwoQubitWeylChamber.jl/)
140-
* [QuantumClifford](https://quantumsavory.github.io/QuantumClifford.jl/stable/references/) and the parent [QuantumSavory organization](https://github.com/QuantumSavory)
140+
* [QuantumClifford](https://qc.quantumsavory.org/stable/references/) and the parent [QuantumSavory organization](https://github.com/QuantumSavory)
141141

142142
## Home References
143143

test/clean.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ function clean(; distclean=false, _exit=true)
3535
for folder in ["", "docs", "test"]
3636
_push!(DISTCLEAN, joinpath(joinpath(ROOT, folder), "Manifest.toml"))
3737
end
38-
_push!(DISTCLEAN, joinpath(ROOT, "docs", "Project.toml"))
3938
###########################################################################
4039

4140
for name in CLEAN

0 commit comments

Comments
 (0)