Skip to content

Move most README content to index.rst #656

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

Merged
merged 3 commits into from
Jun 8, 2020

Conversation

bhrutledge
Copy link
Contributor

Note: I know this unexpected, and normally I would open an issue first, but the change was easy enough to just do, and I thought might facilitate discussion.

I thought of this while working on #644. By putting all of the source for the documentation in one location, it makes it easier to build and preview. More importantly (I think), it gives a canonical destination for users and contributors. I also like the simplicity of the README for rendering on GitHub and PyPI.

README preview: https://github.com/bhrutledge/twine/blob/move-readme/README.rst
Docs preview: https://twine-docs.bhrutledge.now.sh/

Prior art:

Additional changes:

  • Normalize to 4 spaces for indentation
  • Fix some line-length issues
  • Add README.rst to doc8 linting
  • Remove hack in tox -e watch-docs

.. rtd-inclusion-marker-do-not-remove

Twine is `a utility`_ for `publishing`_ Python packages on `PyPI`_.
Twine is a utility for `publishing`_ Python packages on `PyPI`_.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The utility link went to PyPI, which seemed redundant with the badge above.

Comment on lines -38 to -40
# HACK: Detect changes in README.rst; results in superfluous builds
# Mitigated somewhat by ignoring dotfiles
-z . -i '.*' \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was only necessary when docs/index.rst included README.rst.

@bhrutledge bhrutledge added this to the 3.2.0 milestone Jun 8, 2020
@sigmavirus24
Copy link
Member

This looks good. Ideally the README is less overwhelming now and the docs serve their purpose better.

@bhrutledge
Copy link
Contributor Author

Thanks, @sigmavirus24. In 172a828, I changed Options to Commands, and fixed broken list item indentation.

In f4a4cd6, I went a step further and shuffled some sections, prioritizing the command list above keyring, and pulling up "Configuration" in the outline.

https://twine-docs.bhrutledge.now.sh/

@bhrutledge bhrutledge requested a review from sigmavirus24 June 8, 2020 13:15
@sigmavirus24 sigmavirus24 merged commit 1a28b79 into pypa:master Jun 8, 2020
@sigmavirus24
Copy link
Member

This all makes sense to me! Thanks again, @bhrutledge !

@bhrutledge bhrutledge deleted the move-readme branch June 8, 2020 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants