Closed
Description
@khorn reported | |
---|---|
Trac ID | trac#4500 |
Type | enhancement |
Created | 2010-06-10 18:13:22Z |
Branch | https://github.com/twisted/twisted/tree/sphinx-conversion-4500-3 |
Twisted should use Sphinx for all long-form documentation (basically everything but API docs).
This ticket is for handling that conversion.
Comments, discussion, and reviews on this ticket should be about overall issues relating to the conversion.
Markup errors in the conversion branch should be handled in separate "markup review" tickets. This is so we can break up the task of manually reviewing all the markup and one person doesn't get stuck doing it all.
Markup review tickets will be listed in the comments of this ticket once there is a branch to review. (after the 10.1 release)
Download
The lore2sphinx
tool can be downloaded from https://bitbucket.org/khorn/lore2sphinx.
Searchable metadata
trac-id__4500 4500
type__enhancement enhancement
reporter__khorn khorn
priority__normal normal
milestone__Lore_to_Sphinx Lore to Sphinx
branch__branches_sphinx_conversion_4500_3 branches/sphinx-conversion-4500-3
branch_author__khorn__dreid khorn, dreid
status__closed closed
resolution__fixed fixed
component__core core
keywords__documentation documentation
time__1276193602000000 1276193602000000
changetime__1391440760000000 1391440760000000
version__None None
owner__glyph glyph
cc__thijs cc__gtaylor cc__hawkowl@...
Activity
twisted-trac commentedon Jun 10, 2010
Building the Lore-format documentation is currently part of the continuous integration employed in Twisted's development process.
At some point we need to set up something that does the equivalent of the [http://buildbot.twistedmatrix.com/builders/documentation/builds/512/steps/process-docs/logs/stdio Lore process docs step. I'd like to do this even before we've actually switched over, so we can use it to tell us about any problems in branches related to the conversion.
twisted-trac commentedon Jun 14, 2010
Replying to exarkun:
See #4225 that seems related.
twisted-trac commentedon Jul 6, 2010
One of the steps for lore2sphinx is to run sphinx-quickstart. This prompts for a lot of information, some of which I don't have. I guessed and used defaults for a lot and got far enough so that I could run "make html" which threw out hundreds of warnings and errors, for example:
So I think I must have done something wrong. Some more instructions would be helpful.
twisted-trac commentedon Jul 6, 2010
@exarkun:
The lore2sphinx repo includes an already-quickstarted sphinx project in the profiles/twisted directory. While this will need to be modified a bit when doing the "real" conversion, the intention was to provide a common baseline for people to test it against during development, though I don't think anyone but thijs ever did.
Also, keep in mind lore2sphinx was intended to be a "run it once for real" tool. Even then it's not perfect, and making it so would likely consume the rest of my useful programming career accounting for special cases, etc. When I run it and then use sphinx-build from either Sphinx 0.6.5 or Sphinx 1.0b2, I get just 13 errors (as of last week). My feeling is that those can be fixed manually.
twisted-trac commentedon Jul 6, 2010
#4553 was a duplicate of this ticket
twisted-trac commentedon Jul 6, 2010
I know. You've mentioned this too many times for me to ever be able to forget it. :) Despite that, I don't see why we shouldn't be able to run it as many times as we want leading up to the actual conversion. And we need to deal with outstanding branches with changes to the lore source files somehow. It's possible that manually rewriting the docs is the easiest way to go here, but I don't think we should completely throw away the idea of being able to automate at least part of the conversion of such changes.
I'm definitely not pushing for this.
This is more interesting. I used Sphinx 1.0b2. Why did I get hundreds of errors? I suppose it must have had something to do with some of those arguments I gave to sphinx-quickstart. I'll try again with the pre-started project in the lore2sphinx repository.
twisted-trac commentedon Jul 6, 2010
I think using the pre-quickstarted project will help. What kinds of errors were you seeing?
The most likely possibility I can think of is that the docs are full of links to example files, which the fabfile and/or the l2sbuilder.py script copy as an intermediate step in the overall conversion process. If you skip this step, you'll see a whole lot of "I can't find this file" type warnings from Sphinx.
twisted-trac commentedon Jul 7, 2010
What step is this? I don't see it documented anywhere.
twisted-trac commentedon Jul 9, 2010
Well, it's documented in the fabfile and l2s_builder code :)
But I'm afraid that's about it.
twisted-trac commentedon Jul 11, 2010
okay, folks, the plan has changed slightly...
exarkun has created a buildbot which runs lore2sphinx on the current lore sources and creates Sphinx output.
quote from exarkun's email:
In order to minimize the pain of the final conversion, we want to see if we can get the results of the buildbot to look as good as possible before "pulling the trigger".
So we'll be creating "chunk tickets" for that...I'll post the list here once I've created them.
twisted-trac commentedon Jul 11, 2010
Here's a list of the chunk tickets:
twisted-trac commentedon Jul 21, 2010
NOTE: it needs to be possible to build the docs without the docs for vfs and web2, since they are not currently (and should not be) published to the website
It should be possible to handle this using one of the "conditional content" mechanisms in Sphinx.
twisted-trac commentedon Dec 22, 2010
Sorry if this isn't the right place to ask, but where can we go to learn more about helping with this?
twisted-trac commentedon Dec 22, 2010
@gtaylor:
Basically, the plan has remained the same. I think everyone just got busy (I certainly did). We finish reviewing and committing the "chunk" tickets listed in the comments above to make the Lore source convert as close to correctly as possible. Then we convert it to Sphinx using lore2sphiunx and get it into SVN. Then we set up a new set of "chunk" tickets for reviewing and fixing the RestructuredText source.
One possible obstacle is that the lore2sphinx buildbot seems to have broken sometime in the last couple of months. We need to see if we can get that fixed.
As for helping, you can try reviewing and fixing the tickets above, or perhaps post to the Twisted mailing list, which is probably an easier forum for discussions like this.
twisted-trac commentedon Jan 17, 2011
Another ticket: #4621 - lore2sphinx should make pretty links to included files.
41 remaining items