Ask Your Question
4

What is the process for creating two columns using Sphinx?

asked 2021-08-21 11:00:00 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2021-10-17 08:00:00 +0000

bukephalos gravatar image

To create two columns using Sphinx, follow these steps:

  1. Open the .rst file that you want to add columns to.

  2. 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.

  1. Add content to the columns by using the following syntax:

.. column:: Column 1

This is the content for column 1.

.. column:: Column 2

This is the content for column 2.

  1. Preview the changes to the .rst file by building the Sphinx documentation.

  2. Make any necessary adjustments to the column widths or content until you are satisfied with the layout.

  3. Save the .rst file and publish the updated documentation for others to view.

edit flag offensive delete link more

Your Answer

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

Add Answer


Question Tools

Stats

Asked: 2021-08-21 11:00:00 +0000

Seen: 11 times

Last updated: Oct 17 '21