From 10b9e003b9e4bbc928887dd72d96ad093b79119e Mon Sep 17 00:00:00 2001 From: Karl Johan Grahn Date: Fri, 15 Nov 2024 21:35:35 +0100 Subject: [PATCH] update --- README.md | 6 +++- resources/partials/footer.html | 46 ++---------------------------- resources_pr_specific/main.html | 2 +- scripts/combine_theme_resources.py | 3 +- 4 files changed, 9 insertions(+), 48 deletions(-) diff --git a/README.md b/README.md index 7d5f605..86ac9e9 100644 --- a/README.md +++ b/README.md @@ -112,4 +112,8 @@ Versioning is provided by `theme_override` and can be added to the `mkdocs.yml` It is compiled under the `dist/_theme` -> Tip: Copy the [`prepare_theme.sh`](./prepare_theme.sh) file to your project and run it to avoid having to remember to run all commands in step 4. Use the [`prepare_theme_pr.sh`](./prepare_theme_pr.sh) in your pull request builds to generate pull request specific overrides. +> [!NOTE] +> Copy the [`prepare_theme.sh`](./prepare_theme.sh) file to your project and run it to avoid having to remember to run all commands in step 4. +> +> [!NOTE] +> Use the [`prepare_theme_pr.sh`](./prepare_theme_pr.sh) in your pull request builds to generate pull request specific overrides. diff --git a/resources/partials/footer.html b/resources/partials/footer.html index 89d0e44..02b8d23 100644 --- a/resources/partials/footer.html +++ b/resources/partials/footer.html @@ -129,7 +129,6 @@ flex-direction: column; } - .logo-footer-container { display: flex; justify-content: center; @@ -203,7 +202,6 @@ flex-direction: column; } - .logo-footer-container { display: flex; justify-content: center; @@ -253,7 +251,6 @@ } - \ No newline at end of file + diff --git a/resources_pr_specific/main.html b/resources_pr_specific/main.html index 76a8fca..1ea500a 100644 --- a/resources_pr_specific/main.html +++ b/resources_pr_specific/main.html @@ -9,7 +9,7 @@ {% endblock %} {% block outdated %} -This documentation comes from a pull request build and is unreleased, it is only used for review. +This documentation is for a pull request deployment and is unreleased, it is only used for review of the PR. Click here to go to the released documentation. diff --git a/scripts/combine_theme_resources.py b/scripts/combine_theme_resources.py index d2ffa60..f5f3215 100644 --- a/scripts/combine_theme_resources.py +++ b/scripts/combine_theme_resources.py @@ -13,11 +13,10 @@ def copy_submodule(source_dir, destination_dir): if os.path.exists(destination_dir): if args.skiprmtree: print(f'Skipping removal of {destination_dir}.') - shutil.copytree(source_dir, destination_dir, dirs_exist_ok=True) else: shutil.rmtree(destination_dir) print(f'{destination_dir} removed.') - shutil.copytree(source_dir, destination_dir) + shutil.copytree(source_dir, destination_dir, dirs_exist_ok=args.skiprmtree) print(f'Submodule copied to {destination_dir}.') def override_resources(theme_override_dir, output_to_dir):