Skip to content

Commit

Permalink
Update Action (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
g4brielvs authored Jan 29, 2024
1 parent 1ade004 commit 9768321
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip"
- name: Dependencies
run: |
if [ -f docs/requirements.txt ]; then pip install -r docs/requirements.txt; fi
if [ -f pyproject.toml ]; then pip install ".[docs]"; fi
- name: Build Jupyter Book
run: |
jupyter-book build . --config docs/_config.yml --toc docs/_toc.yml
Expand Down
6 changes: 5 additions & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ html:
baseurl: https://worldbank.github.io/template
extra_footer: |
<div>
<b>All content (unless otherwise specified) is subject to the <a href="https://www.mozilla.org/en-US/MPL/">Mozilla Public License.</a></b>
For illustrative purposes and does not imply the expression of any opinion on the part of the World Bank, concerning the legal status of any country or territory or concerning the delimitation of frontiers or boundaries.
</div>
<br>
<div>
<b>All content (unless otherwise specified) is subject to the <a href="https://www.mozilla.org/en-US/MPL/">Mozilla Public License</a>.</b>
</div>
favicon: docs/images/favicon.ico

Expand Down
2 changes: 0 additions & 2 deletions docs/requirements.txt

This file was deleted.

4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ classifiers = [
requires-python = ">=3.7"
dependencies = ["requests>=2.28.1", "pycountry>=22.3.5"]
[project.optional-dependencies]
docs = [
"docutils==0.17.1", # https://jupyterbook.org/en/stable/content/citations.html?highlight=docutils#citations-and-bibliographies
"jupyter-book >=1,<2",
]
notebook = ["notebook>=6.5.2"]

[project.urls]
Expand Down
1 change: 1 addition & 0 deletions src/datalab/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.1.0
5 changes: 4 additions & 1 deletion src/datalab/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
__version__ = "0.1.0"
from pathlib import Path

__version__ = (Path(__file__).parent / "VERSION").read_text().strip()

0 comments on commit 9768321

Please sign in to comment.