-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Use .rst as the file extension for reST-based PEPs #1
Comments
#32 covers supporting .rst as an extension in the Makefile and PEP 0 generator |
Added all the thing that should not be lost in megathreads
@berkerpeksag mentioned in #116 that the I think that may be the only remaining barrier to a bulk rename of the existing text/x-rst PEPs. |
That's been my assumption as well about where things stand. |
This issue is also dependent on #4 . |
Looks like www.python.org/dev/peps/ will now display PEPs with a |
The problem is the converter doesn't know anything about the source file so we probably need to guess the extension (maybe do a HEAD request to |
What I'm expecting is once #4 is done we can update the converter to assume |
Hm... The source link thing is sad. Where's the code for the converter? |
This is the offending line in the web app: https://github.com/python/pythondotorg/blob/master/peps/converters.py#L184 I'm thinking it may make sense to move that part out of the web app and into |
Oh, that's a good idea.
|
I learned in #462 that renaming a file on GitHub has a side effect of not being able to view the file's complete history. For example, after (The "History" I'm referring to is the button on GitHub when you're viewing the file: https://github.com/python/peps/blob/master/pep-0008.txt:) Using the command line, |
Good call Mariatta! That's a really dumb GitHub feature. But so be it.
|
Personally, I just use the command-line git tools, or |
I use the online history browser to check "When did such & such a change happen?", so losing annotations would be more annoying than not having inline rendering. So using |
+1. |
Do realize that leaving old PEPs as-is will still require a code change as the link back to the PEP source will still be broken (right now it blindly assumes it's a |
Right, we should still pull that snippet out of the website code and move it into pep2html.py |
The link back to the PEP source has been fixed in python/pythondotorg#1195. |
So is this considered done at this point then? |
Aye, looks done to me - if we find anything else missing, it can become a new issue. |
Thanks to all involved in getting this done! |
Relevant here: isaacs/github#900 |
Requires not only renaming all relevant files but also updating code to accept the file extension. As part of this we can probably consider dropping the
Content-Type
as it will be known from the file extension (although others may disagree).This will allow for rich rendering of the reST-based PEPS by GitHub.
The text was updated successfully, but these errors were encountered: