Skip to content
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] doc: build errors & some warnings #30835

Closed
wants to merge 4 commits into from

Conversation

xmo-odoo
Copy link
Collaborator

@xmo-odoo xmo-odoo commented Feb 5, 2019

No description provided.

@xmo-odoo
Copy link
Collaborator Author

xmo-odoo commented Feb 5, 2019

ping @Polymorphe57

@xmo-odoo
Copy link
Collaborator Author

xmo-odoo commented Feb 5, 2019

robodoo rebase-merge

@robodoo
Copy link
Contributor

robodoo commented Feb 5, 2019

Merge method set to rebase and merge, using the PR as merge commit message

@C3POdoo C3POdoo added the RD research & development, internal work label Feb 5, 2019
Make UnknownNS more capable (of giving no fucks) so the documentation
builder blows up less on weird-ass code at module toplevels.

UnknownNS should probably be split out from NSDoc though, that requires
odd workarounds in `__getitem__`.
Would yield block quotes instead of code blocks or lists or whatnot.
Previously we'd `append` the extensions and odoo parent directories to
sys.path, however this means if an `odoo` is already installed in a
sys.path (e.g. global installation, or setup.py develop in a venv,
...) *that* will be used as the source of Python code (for autodoc)
instead of the Python source being synchronised with the rst, which
can lead to very odd behaviour.

Prepend the doc's stuff to the PYTHONPATH instead, to ensure they get
priority and the code matching the rst gets loaded.
@robodoo robodoo added the CI 🤖 Robodoo has seen passing statuses label Feb 18, 2019
@xmo-odoo
Copy link
Collaborator Author

robodoo r+

robodoo added a commit that referenced this pull request Feb 19, 2019
@robodoo
Copy link
Contributor

robodoo commented Feb 19, 2019

Merged, thanks!

@robodoo robodoo closed this Feb 19, 2019
@xmo-odoo xmo-odoo deleted the master-doc-fixes-xmo branch February 19, 2019 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI 🤖 Robodoo has seen passing statuses RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants