Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,9 @@ jobs:
julia --project=docs --color=yes docs/make.jl pdf
env:
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
- name: Upload documentation artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: pkg-docs
path: docs/build/
17 changes: 17 additions & 0 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@ Welcome to the documentation for Pkg, [Julia](https://julialang.org)'s package m
The documentation covers many things, for example managing package
installations, developing packages, working with package registries and more.

```@eval
import Markdown
# For Pkg, we need to determine the appropriate Julia version for the PDF
# Since Pkg docs are versioned by Julia version, we'll use a similar approach to Julia docs
julia_patch = if VERSION.prerelease == ()
"v$(VERSION.major).$(VERSION.minor).$(VERSION.patch)"
elseif VERSION.prerelease[1] == "DEV"
"dev"
end
file = "Pkg.jl.pdf"
url = "https://raw.githubusercontent.com/JuliaLang/Pkg.jl/gh-pages-pdf/$(julia_patch)/$(file)"
Markdown.parse("""
!!! note
The documentation is also available in PDF format: [$file]($url).
""")
```

Throughout the manual the REPL interface to Pkg, the Pkg REPL mode, is used in the examples.
There is also a functional API, which is preferred when not working
interactively. This API is documented in the [API Reference](@ref) section.
Expand Down
Loading