The Dash Enterprise documentation /dash-enterprise/
consists of a series of chapters relevant to Plotly Enterprise + DDS users. If you wish to contribute to these documents, please follow the instruction below.
If you would like to edit or add content to an existing chapter (e.g. "Linking to Redis Database"), then navigate tutorial/dash_deployment_server_examples.py
and edit the content within the layout variable (e.g. Redis
).
Files that need edited include:
tutorial/dash_deployment_server_examples.py
Home to chapter content.tutorial/dash_deployment_server.py
Defines the layout ofdash.plotly.com/dash-enterprise/
tutorial/chapter_index.py
Defines the layout ofdash.plotly.com
and the search index.tests/test_intergration.py
Links for Percy snapshots.
In tutorial/dash_deployment_server.py
add the new chapter to the Dash Enterprise main page.
reusable_components.Chapter(title, URL, description)
For example,
reusable_components.Chapter('Linking a Redis Database',
'/dash-enterprise/redis-database',
'Create and link an in-memory database to your Dash Apps.')
In tutorial/dash_deployment_server_examples.py
create a variable to define the chapter layout content.
NewChapter = html.Div(children=[
html.H1('Chapter Heading'),
rc.Markdown('''
### Title
text
''')
])
When adding text use: rc.Markdown()
When adding code use: rc.Markdown()
with triple backticks.
When adding images add the images to tutorial/assets/images/dds/
and use a relative link in the text.
When adding links use relative links where possible.
In tutorial/chapter_index.py
add a new dict entry for your chapter.
'NewChapter-examples': {
'url': '',
'content': '',
'name': '',
'description': ''
},
For example,
'redis-examples': {
'url': '/dash-enterprise/redis-database',
'content': dds_examples.Redis,
'name': 'Linking a Redis Database',
'description': 'Create and link an in-memory database to your Dash Apps.'
},
Next, because you have edited the chapters dict, which is used to generate the search index, you need to update the search index by running python dash_search_index.py
in the root of the dash-docs repo.
Lastly, in tests/test_intergration.py
you'll need to add the new URL link to the existing DDS list, which will enable Percy to capture snapshots of the new chapter.