-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from menckend/main
Rebasing dev
- Loading branch information
Showing
2,523 changed files
with
547,668 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,13 +22,28 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Sphinx Builder | ||
uses: Kjuly/[email protected] | ||
with: | ||
source_root: 'docs' | ||
build_root: 'build' | ||
default_lang: 'en' | ||
lang_mappings: '' | ||
- name: Build Docs With Sphinx | ||
shell: bash | ||
run: | | ||
SOURCE_ROOT='docs' | ||
BUILD_ROOT='build' | ||
sudo apt-get install -y graphviz | ||
pip install -U sphinx | ||
# Install extra dependencies if the requirements.txt file exits. | ||
requirements_file="$SOURCE_ROOT/requirements.txt" | ||
if [ -f "$requirements_file" ]; then | ||
printf 'Install dependencies with %s ...', "$requirements_file" | ||
pip install -r "$requirements_file" | ||
fi | ||
config_base_file="$SOURCE_ROOT/conf.py" | ||
# Input & output dirs. | ||
input_dir="$SOURCE_ROOT/" | ||
output_dir="$BUILD_ROOT" | ||
# Sphinx config file | ||
config_file="$input_dir/conf.py" | ||
# Build with Sphinx | ||
printf "\n# Start building for %s ..\n" | ||
sphinx-build -M html "$input_dir" "$output_dir" | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v5 | ||
- name: Upload Pages Artifact | ||
|
@@ -37,4 +52,4 @@ jobs: | |
path: '${{ github.workspace }}/build/html' | ||
- name: deployment | ||
id: deployment | ||
uses: actions/deploy-pages@v4 | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from django.utils.version import get_version | ||
|
||
VERSION = (5, 1, 3, "alpha", 0) | ||
|
||
__version__ = get_version(VERSION) | ||
|
||
|
||
def setup(set_prefix=True): | ||
""" | ||
Configure the settings (this happens as a side effect of accessing the | ||
first setting), configure logging and populate the app registry. | ||
Set the thread-local urlresolvers script prefix if `set_prefix` is True. | ||
""" | ||
from django.apps import apps | ||
from django.conf import settings | ||
from django.urls import set_script_prefix | ||
from django.utils.log import configure_logging | ||
|
||
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING) | ||
if set_prefix: | ||
set_script_prefix( | ||
"/" if settings.FORCE_SCRIPT_NAME is None else settings.FORCE_SCRIPT_NAME | ||
) | ||
apps.populate(settings.INSTALLED_APPS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
""" | ||
Invokes django-admin when the django module is run as a script. | ||
Example: python -m django check | ||
""" | ||
|
||
from django.core import management | ||
|
||
if __name__ == "__main__": | ||
management.execute_from_command_line() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from .config import AppConfig | ||
from .registry import apps | ||
|
||
__all__ = ["AppConfig", "apps"] |
Oops, something went wrong.