-
Notifications
You must be signed in to change notification settings - Fork 9
Add repository find mechanism #120
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
base: rewrite-as-mkdocs-plugin
Are you sure you want to change the base?
Add repository find mechanism #120
Conversation
abcdddd
to
747b324
Compare
874c2eb
to
8838f05
Compare
src/pulp_docs/plugin.py
Outdated
@@ -34,6 +35,33 @@ class ComponentOption(Config): | |||
git_url = config_options.Type(str, default="") | |||
rest_api = config_options.Type(str, default="") | |||
|
|||
_repository_dir = None |
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.
Don't make this a class var.
src/pulp_docs/plugin.py
Outdated
raise RuntimeError( | ||
"Can't get repository/component path before resolving the dir in the filesystem." | ||
) |
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.
What if we did not extend the mkdocs config class and instead wrapped a fat interface class around it?
I think we could prevent the "you need to post initialize this class before you can use it" situation.
Put another way: The easiest/safest way to maintain state is to never change it.
0beec0d
to
99d32e4
Compare
556d490
to
4207db1
Compare
4207db1
to
1c3e210
Compare
No description provided.