Skip to content

Commit

Permalink
debug 2
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcapet committed Apr 5, 2024
1 parent e6f2e52 commit a25b3b2
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions docs/conf.py
Expand Up @@ -276,19 +276,20 @@ def env_get_outdated(app, env, added, changed, removed):
Remove the items listed in `docs_to_remove` from known pages.
"""
for doc in list(added):
print('reading added:')
print(added)
to_remove = set()
print('reading env.found_docs')
print(env.found_docs)
for doc in env.found_docs:
if _to_be_removed(doc):
added.remove(doc)
removed.add(doc)
for doc in list(changed):
print('reading changed:')
print(changed)
if _to_be_removed(doc):
changed.remove(doc)
removed.add(doc)
print('reading removed:')
to_remove.add(doc)
added.difference_update(to_remove)
changed.difference_update(to_remove)
removed.update(to_remove)
print('reading added')
print(added)
print('reading changed')
print(changed)
print('reading removed')
print(removed)
return []

Expand Down

0 comments on commit a25b3b2

Please sign in to comment.