To create two columns using Sphinx, follow these steps:
Open the .rst file that you want to add columns to.
Create a section for the columns by using the following syntax:
.. columns:: :column-widths: 50 50
The column-widths set the size of each column as a percentage of the total width. In this example, the two columns are each 50% of the total width.
.. column:: Column 1
This is the content for column 1.
.. column:: Column 2
This is the content for column 2.
Preview the changes to the .rst file by building the Sphinx documentation.
Make any necessary adjustments to the column widths or content until you are satisfied with the layout.
Save the .rst file and publish the updated documentation for others to view.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-08-21 11:00:00 +0000
Seen: 11 times
Last updated: Oct 17 '21