Merge lp:~adiroiban/pydoctor/1287458-objects.inv into lp:~mwhudson/pydoctor/dev
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 615 | ||||
Proposed branch: | lp:~adiroiban/pydoctor/1287458-objects.inv | ||||
Merge into: | lp:~mwhudson/pydoctor/dev | ||||
Diff against target: |
386 lines (+344/-0) 4 files modified
README.txt (+30/-0) pydoctor/driver.py (+15/-0) pydoctor/sphinx.py (+98/-0) pydoctor/test/test_sphinx.py (+201/-0) |
||||
To merge this branch: | bzr merge lp:~adiroiban/pydoctor/1287458-objects.inv | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Hudson-Doyle | Pending | ||
Review via email: mp+219116@code.launchpad.net |
Description of the change
Project
------
pydoctor pickle system is broken.
Rather than fixing picker, the solution was to support sphinx inventory objects.inv
Changes
-------
I have note removed pickle code, but created a separate ticket for that.. as I have no idea how pickle should be used.
When html is generated it will alwasy generate an objects.inv file.
I did not add any options, trying to keep things simple.
Also file is hardcoded to objects.inv and there is no option to use a different file name.
I have added some tests and updated documentation.
How to test
-----------
I tried this on my local computer with sphinx documentation. Syntax is documented in README.
intersphinx plugin can be configured with local paths:
intersphinx_mapping = {
'py2': ('http://
'py3': ('http://
'pydoctor': ('file:
}
Please check that changes make sense and let me know if something needs changes.
Thanks!
Woah! This is awesome, thanks for working on this.
Just a few comments, but they're pretty minor. I'd be happy to merge
this as is, but I'll give you time to reply first.
Adi Roiban <email address hidden> writes:
> Adi Roiban has proposed merging lp:~adiroiban/pydoctor/1287458-objects.inv into lp:pydoctor. /bugs.launchpad .net/pydoctor/ +bug/1287458 /code.launchpad .net/~adiroiban /pydoctor/ 1287458- objects. inv/+merge/ 219116
>
> Requested reviews:
> Michael Hudson-Doyle (mwhudson)
> Related bugs:
> Bug #1287458 in pydoctor: "Generate Sphinx object inventory instead of pickle"
> https:/
>
> For more details, see:
> https:/
>
> Project
> ------
>
> pydoctor pickle system is broken.
>
> Rather than fixing picker, the solution was to support sphinx inventory objects.inv
>
>
> Changes
> -------
>
> I have note removed pickle code, but created a separate ticket for that.. as I have no idea how pickle should be used.
pickle should not be used, ever. I think I even knew this when I was
first writing pydoctor all those years ago, I don't know what I was
thinking.
> When html is generated it will alwasy generate an objects.inv file.
> I did not add any options, trying to keep things simple.
>
> Also file is hardcoded to objects.inv and there is no option to use a different file name.
That's also the way sphinx works right? It assumes that there is a objects. inv? If so, I agree there is no point
objects.inv at $base_url/
adding flexibility to pydoctor...
> I have added some tests and updated documentation.
Thanks :-)
> How to test docs.python. org/2.7', None), docs.python. org/3.3', None), ///home/ adi/chevah/ pydoctor/ apidocs' , None), /code.launchpad .net/~adiroiban /pydoctor/ 1287458- objects. inv/+merge/ 219116 domain. tld/api', None), pydoctor. model.Documenta ble.reparent> ` `pydoctor: pydoctor` `pydoctor: pydoctor. model` `pydoctor: pydoctor. driver. getparser` `pydoctor: pydoctor. m...
> -----------
>
> I tried this on my local computer with sphinx documentation. Syntax is documented in README.
>
> intersphinx plugin can be configured with local paths:
>
> intersphinx_mapping = {
> 'py2': ('http://
> 'py3': ('http://
> 'pydoctor': ('file:
> }
>
> Please check that changes make sense and let me know if something needs changes.
> Thanks!
>
> --
> https:/
> You are requested to review the proposed merge of lp:~adiroiban/pydoctor/1287458-objects.inv into lp:pydoctor.
> === modified file 'README.txt'
> --- README.txt 2013-05-29 03:28:59 +0000
> +++ README.txt 2014-05-11 11:23:52 +0000
> @@ -14,3 +14,33 @@
> The default HTML generator requires Twisted.
>
> There are some more notes in the doc/ subdirectory.
> +
> +
> +Sphinx Integration
> +------------------
> +
> +HTML generator will also generate a Sphinx objects inventory using the
> +following mapping:
> +
> +* packages, modules -> py:mod:
> +* classes -> py:class:
> +* functions -> py:func:
> +* methods -> py:meth:
> +* attributes -> py:attr:
> +
> +Configure Sphinx intersphinx extension:
> +
> + intersphinx_mapping = {
> + 'pydoctor': ('http://
> + }
> +
> +Use external references::
> +
> + :py:func:`External API <pydoctor:
> +
> + :py:mod:
> + :py:mod:
> + :py:func:
> + :py:class: