Skip to content

Commit

Permalink
Fix blog doesn't showing up in docs (build)
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
pedro-psb committed Jul 18, 2024
1 parent 1aa44f0 commit bd7e879
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/pulp_docs/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def build(ctx: PulpDocsContext):
pulpdocs = ctx.pulp_docs

config.verbose = True
config.disabled = ""

dry_run = True if config.test_mode else False
pulpdocs.build(config, dry_run=dry_run)
Expand Down
2 changes: 1 addition & 1 deletion src/pulp_docs/data/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ plugins:
- search
- site-urls
- blog:
blog_dir: pulp-docs/docs/sections/blog
blog_dir: blog
blog_toc: false
- macros:
module_name: '../mkdocs_macros'
Expand Down
2 changes: 1 addition & 1 deletion src/pulp_docs/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ def download(
log.info(f"{log_header}: source={download_from}, copied_from={src_copy_path}")

# ignore files lisetd in .gitignore and files that starts with "."
# shutil ignore limitation: https://github.com/Miserlou/Zappa/issues/692#issuecomment-283012663
ignore_patterns = get_git_ignored_files(Path(src_copy_path)) + [".*"]

# skip blog for faster reloads
if self.name == "pulp-docs" and "blog" in disabled:
# limitation: https://github.com/Miserlou/Zappa/issues/692#issuecomment-283012663
ignore_patterns.append("*posts")

shutil.copytree(
Expand Down

0 comments on commit bd7e879

Please sign in to comment.