-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix re-build #24
Fix re-build #24
Conversation
I wonder why the tests cases didn't catch this. Could you add a html/dirhtml test case that fails without this pr and passes with it? |
done 👍, you need to create a new app for the re-build |
sphinxext/rediraffe.py
Outdated
app.env.redirected | ||
except AttributeError: | ||
app.env.redirected = {} | ||
redirect_json_file = Path(app.outdir) / "redirect.json" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, looks good to me.
The one thing that sticks out is "redirect.json"
. Would something like "rediraffe_record.json"
or "rediraffe_cache.json"
be a better name? @Daltz333 what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, I've now changed the name
* Fix re-build * Update test_ext.py * rename JSON
No description provided.