Skip to content

Commit

Permalink
Merge pull request #136 from digitalearthafrica/nanaboamah89-patch-1
Browse files Browse the repository at this point in the history
Update conf.py
  • Loading branch information
nanaboamah89 authored Sep 16, 2024
2 parents 6b59b96 + 752a69a commit 1f0ca8e
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,21 +172,21 @@


# Translation options
# gettext_compact = "docs" # makes a single "docs.po" file
# gettext_location = False # This causes the build to break?
# locale_dirs = ['locales/']

# on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
# on_gha = os.environ.get('GITHUB_ACTIONS', None) == 'True'
# get_translation = os.environ.get('POEDITOR_PROJECT_ID', None) is not None

# # If we are on ReadTheDocs, and translation is required, download the translation file from poeditor
# if on_rtd and get_translation:
# import subprocess
# subprocess.run(["make", "fetchtranslation"])

# # If we are on ReadtheDocs, load the latest version of the notebooks
# if on_rtd or on_gha:
# import subprocess
# subprocess.run(["make", "fetchnotebooks"])
# subprocess.run(["make", "buildtools"])
gettext_compact = "docs" # makes a single "docs.po" file
gettext_location = False # This causes the build to break?
locale_dirs = ['locales/']

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
on_gha = os.environ.get('GITHUB_ACTIONS', None) == 'True'
get_translation = os.environ.get('POEDITOR_PROJECT_ID', None) is not None

# If we are on ReadTheDocs, and translation is required, download the translation file from poeditor
if on_rtd and get_translation:
import subprocess
subprocess.run(["make", "fetchtranslation"])

# If we are on ReadtheDocs, load the latest version of the notebooks
if on_rtd or on_gha:
import subprocess
subprocess.run(["make", "fetchnotebooks"])
subprocess.run(["make", "buildtools"])

0 comments on commit 1f0ca8e

Please sign in to comment.