Skip to content

Commit

Permalink
add ribasim-python to docs (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
visr authored Mar 13, 2023
1 parent 45a00d7 commit bf6c7e3
Show file tree
Hide file tree
Showing 18 changed files with 550 additions and 3,135 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ jobs:
- uses: julia-actions/julia-buildpkg@v1
with:
project: core
env:
JULIA_PKG_SERVER: "pkg.julialang.org"
- uses: julia-actions/julia-runtest@v1
with:
project: core
Expand Down
22 changes: 12 additions & 10 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/julia-buildpkg@v1
env:
JULIA_PKG_SERVER: "pkg.julialang.org"
with:
project: core
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
Expand All @@ -38,22 +38,24 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- run: pip install jupyter
- run: pip install jupyter quartodoc xarray

- name: Install IJulia
run: julia -e 'using Pkg; Pkg.add("IJulia")'
- name: Install ribasim-python
working-directory: python
run: pip install -e .

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2

- name: Check Quarto install
run: quarto check install
- name: Check Quarto installation and all engines
run: quarto check all

- name: Check Quarto kernels
run: quarto check jupyter
- name: Generate API pages
working-directory: docs
run: python -m quartodoc build

- name: Render Quarto Project
run: "quarto render docs --to html" # TODO add --execute back
run: "quarto render docs --to html --execute"

- name: Publish Quarto Project
if: github.event_name != 'pull_request'
Expand Down
11 changes: 2 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ docs/site/
/core/Manifest.toml

/data/
compile/create_binaries/ribasim_cli/
compile/create_binaries/libribasim/
build/create_binaries/ribasim_cli/
build/create_binaries/libribasim/

.vscode
JuliaSysimage.dll
Expand Down Expand Up @@ -153,12 +153,5 @@ dmypy.json
# Pyre type checker
.pyre/

# Generated docs
/docs

# VS Code settings
*.vscode

# Example models
/examples/basic
/examples/basic-transient
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Deltares
Copyright (c) Ribasim developers

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion core/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Deltares
Copyright (c) Ribasim developers

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 3 additions & 1 deletion docs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/.quarto/
/_site/
/site_libs/
/docs/python/reference/
*.html
/objects.json
Empty file removed docs/.gitkeep
Empty file.
Loading

0 comments on commit bf6c7e3

Please sign in to comment.