Skip to content

Commit 24a8ea2

Browse files
committed
Fix blog doesn't showing up in docs (build)
[noissue]
1 parent 1aa44f0 commit 24a8ea2

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/pulp_docs/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def build(ctx: PulpDocsContext):
9999
pulpdocs = ctx.pulp_docs
100100

101101
config.verbose = True
102+
config.disabled = ""
102103

103104
dry_run = True if config.test_mode else False
104105
pulpdocs.build(config, dry_run=dry_run)

src/pulp_docs/data/mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ plugins:
4242
- search
4343
- site-urls
4444
- blog:
45-
blog_dir: pulp-docs/docs/sections/blog
45+
blog_dir: blog
4646
blog_toc: false
4747
- macros:
4848
module_name: '../mkdocs_macros'

src/pulp_docs/repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ def download(
125125
log.info(f"{log_header}: source={download_from}, copied_from={src_copy_path}")
126126

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

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

135135
shutil.copytree(

0 commit comments

Comments
 (0)