dagu/docs
2024-08-03 14:36:42 +09:00
..
_static redo the logo image 2024-05-26 22:03:15 +09:00
_templates Rename org dagu-dev to daguflow (#632) 2024-07-25 02:13:39 +09:00
docs.egg-info Rename org dagu-dev to daguflow (#632) 2024-07-25 02:13:39 +09:00
source Update documentation for schema definition (#645) 2024-08-03 14:36:42 +09:00
.gitignore docs: setup i18n 2024-05-09 00:44:06 +09:00
.python-version chore: update pyver for docs 2024-05-08 23:45:14 +09:00
LICENSE docs: setup i18n 2024-05-09 00:44:06 +09:00
make.bat Add Sphinx Documentation (#431) 2023-04-14 18:12:37 +09:00
Makefile docs: add translation 2024-04-17 15:26:51 +09:00
pyproject.toml Update Command Parsing Logic (#571) 2024-05-25 21:20:17 +09:00
README.md Rename org dagu-dev to daguflow (#632) 2024-07-25 02:13:39 +09:00
requirements-dev.lock docs: setup i18n 2024-05-09 00:44:06 +09:00
requirements.lock docs: setup i18n 2024-05-09 00:44:06 +09:00
requirements.txt docs: update 2024-04-17 19:17:19 +09:00

Dagu Documentation

This is the documentation for the Dagu project.

Prerequisites

Make sure you have the following installed:

  • Python (version >= 3.11)
  • Rye

Getting Started

  1. Clone the repository:
git clone https://github.com/daguflow/dagu.git
  1. Navigate to the document directory:
cd docs
  1. Install the project dependencies using Rye:
rye sync

Running Locally

To run the documentation server locally, use the following command:

rye run serve

This will start the sphinx-autobuild server, which will watch for changes in the docs directory and automatically rebuild the documentation. Open your web browser and visit http://localhost:8000 to view the documentation.

Building the Documentation

To build the documentation, use one of the following commands:

  • For English documentation:
rye run build
  • For Japanese documentation:
rye run build-ja

The built documentation will be available in the build/html directory.

Generating Gettext Files (Japanese)

To generate the gettext files for Japanese translation, run:

rye run gettext-ja

This command will generate the necessary gettext files in the build/html directory and update the Japanese translation files.

Adding New Translations

We welcome contributions for adding new translations to the documentation. To add a new translation:

  1. Create a new directory for the target language in the source/locale directory (e.g., source/locale/fr for French).
  2. Generate the gettext files for the target language by running:
make gettext
sphinx-intl update -p build/gettext -l <language>

Replace <language> with the appropriate language code (e.g., fr for French). 3. Update the translation files in the source/locale//LC_MESSAGES directory. 4. Build the documentation for the target language:

sphinx-build -b html -D language=<language> source/ build/html/<language>

Replace <language> with the appropriate language code (e.g., fr for French). 5. Submit a pull request with your changes.

See Sphinx Internationalization for more information on internationalization in Sphinx.

Dependencies

The project dependencies are managed using Rye and specified in the pyproject.toml file. The main dependencies include:

  • Sphinx (version 5.3.0)
  • sphinx-rtd-theme (version 2.0.0)
  • sphinx-autobuild (version >= 2024.4.16)

Contributing

We welcome contributions to improve the documentation. If you find any issues or have suggestions for enhancements, please feel free to open an issue or submit a pull request.