-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fixes to the formatting of README.rst
#12627
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,7 @@ solutions. The hope is for Matrix to act as the building blocks for a new | |
generation of fully open and interoperable messaging and VoIP apps for the | ||
internet. | ||
|
||
Synapse is a Matrix "homeserver" implementation developed by the matrix.org core | ||
Synapse is a Matrix "homeserver" implementation developed by the matrix.org core | ||
team, written in Python 3/Twisted. | ||
|
||
In Matrix, every user runs one or more Matrix clients, which connect through to | ||
|
@@ -294,13 +294,13 @@ directory of your choice:: | |
cd synapse | ||
|
||
Synapse has a number of external dependencies. We maintain a fixed development | ||
environment using [poetry](https://python-poetry.org/). First, install poetry. We recommend | ||
environment using `Poetry <https://python-poetry.org/>`_. First, install poetry. We recommend:: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Arg. Is there a ReST linter that might have caught this? Maybe https://pypi.org/project/restructuredtext-lint/ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FWIW, my training/tradition is to treat displayed items as a noun in the flow of a sentence, including punctuation if ending the sentence. Though this doesn't work brilliantly for source code. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I've never looked into this, tbh. Given the README is the only RST thing we have nowadays, I'm not sure it's worth much linting effort, though I'll not statnd in the way. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Afraid I'm not really sure what you're referring to here. The capitalisation of "Poetry"? The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Further, it's not obvious what there is to "catch": it was valid RST, it just didn't do what you wanted it to do. markdown-style links are a common error that we could look for explicitly, I suppose, but I'm not sure it's reasonable to expect any generic RST linter to do so. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Sorry. I meant the omission of the trailing
But that's a mionr style thing that isn't worth squabbling over. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I want a program that knows all of the mistakes that I make in advance and catches them. AKA, the moon on a stick. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Oh right. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
apparently you stick the |
||
|
||
| pip install --user pipx | ||
| pipx install poetry | ||
pip install --user pipx | ||
pipx install poetry | ||
|
||
as described `here <https://python-poetry.org/docs/#installing-with-pipx>`_. | ||
(See `poetry's installation docs <https://python-poetry.org/docs/#installation>` | ||
(See `poetry's installation docs <https://python-poetry.org/docs/#installation>`_ | ||
for other installation methods.) Then ask poetry to create a virtual environment | ||
from the project and install Synapse's dependencies:: | ||
|
||
|
@@ -309,11 +309,11 @@ from the project and install Synapse's dependencies:: | |
This will run a process of downloading and installing all the needed | ||
dependencies into a virtual env. | ||
|
||
We recommend using the demo which starts 3 federated instances running on ports `8080` - `8082` | ||
We recommend using the demo which starts 3 federated instances running on ports `8080` - `8082`:: | ||
|
||
poetry run ./demo/start.sh | ||
|
||
(to stop, you can use `poetry run ./demo/stop.sh`) | ||
(to stop, you can use ``poetry run ./demo/stop.sh``) | ||
|
||
See the `demo documentation <https://matrix-org.github.io/synapse/develop/development/demo.html>`_ | ||
for more information. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fixes to the formatting of README.rst. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I need to figure out how to configure PyCharm to not do this when it automatically wraps a line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this trailing space was your doing, tbh, and it's not exactly the end of the world anyway. But my editor likes to strip them...