Skip to content

Troubleshooting Knowledge Hub formatting

Benjamin Glitsos edited this page Mar 12, 2024 · 3 revisions

This is a catalogue of known issues and solutions for converting notebooks to html with Sphinx See Sphinx documentation for some guidelines around how markdown in notebooks converts to html.

Bullets

Bullets not displaying correctly

Check that there is an empty line before your bullet list

My list:

* one
* two

as opposed to

My list:
* one
* two

Check that you have used * to mark bullets, rather than -

My list:

* one
* two

as opposed to

My list:

- one
- two

Check that sub-lists are indented by four spaces, rather than two

My list:

* one
    * two
    * three
* four

as opposed to

My list:

* one
  * two
  * three
* four

Text formatting

Text displays strangely

Examples

  • Products used: ga_ls5t_ard_3 <https://explorer.sandbox.dea.ga.gov.au/ga_ls5t_ard_3>__
  • Notebook currently compatible with both the NCI and DEA Sandbox environments

Solution: check whether there are two kinds of formatting and reduce it to one.

Examples

Disappearing headers

Headers must be initially in ascending order of # symbols to display correctly. Headers should always be directly nested: Title, then subheading, then sub-subheading, before going back up to a new sub heading. There can only be one entry with the highest-level # heading; this is typically reserved for the notebook title.

# Title

## Subheading 1

### Sub-subheading 1

#### Sub-sub-subheading 1

## Subheading 2

etc

As opposed to

# Title

### Sub-subheading 1

## Subheading 1

#### Sub-sub-subheading 1

## Subheading 2

etc
Clone this wiki locally