Skip to content

Commit

Permalink
streamline flytekit documentation (#424)
Browse files Browse the repository at this point in the history
* streamline flytekit documentation

- add flyte logo
- update top nav link to be consistent with flyteorg/flytesnacks#135 and flyteorg/flyte#840
- edit index page for improved layout

Signed-off-by: cosmicBboy <[email protected]>

* format

Signed-off-by: cosmicBboy <[email protected]>

* formatting

Signed-off-by: cosmicBboy <[email protected]>
  • Loading branch information
cosmicBboy authored Mar 18, 2021
1 parent e104c2e commit c7ff1e8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 37 deletions.
12 changes: 11 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
html_theme = "sphinx_material"
html_theme_options = {
# Set the name of the project to appear in the navigation.
"nav_title": "Flyte",
"nav_title": "Flytekit Python Reference",
# Set you GA account ID to enable tracking
"google_analytics_account": "G-YQL24L5CKY",
# Specify a base_url used to generate sitemap.xml. If not
Expand All @@ -108,6 +108,15 @@
"globaltoc_collapse": False,
# If True, show hidden TOC entries
"globaltoc_includehidden": False,
# don't include home link in breadcrumb bar, since it's included
# in the nav_links key below.
"master_doc": False,
# custom nav in breadcrumb bar
"nav_links": [
{"href": "https://flyte.readthedocs.io/", "internal": False, "title": "Flyte"},
{"href": "https://flytecookbook.readthedocs.io", "internal": False, "title": "Flytekit Tutorials"},
{"href": "index", "internal": True, "title": "Flytekit Python Reference"},
],
}

# The default sidebars (for documents that don't match any pattern) are
Expand All @@ -125,6 +134,7 @@
# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
#
html_logo = "flyte_circle_gradient_1_4x4.png"


# -- Options for HTMLHelp output ---------------------------------------------
Expand Down
Binary file added docs/source/flyte_circle_gradient_1_4x4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 12 additions & 36 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,27 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
##########################################
Welcome to ``Flytekit``'s documentation!
##########################################
*************************
Flytekit Python Reference
*************************

*************
Flytekit API
*************

.. toctree::
:maxdepth: 1
:caption: APIs

flytekit
testing
extend

This section documents the various Python imports users will need to work with to build Flyte workflows, extend Flytekit, etc.


********************
Flytekit Design
********************
This section of the documentation provides more detailed descriptions of the high-level design of ``flytekit`` and an
API reference for specific usage details of python functions, classes, and decorators that you import to specify tasks,
build workflows, extend ``flytekit``.

.. toctree::
:maxdepth: 1
:caption: Design

design/index

This section details how flytekit is laid out, its general design, and some of the rationale for why it is the way it is.
.. toctree::
:maxdepth: 1
:caption: APIs

********************
Conributing
********************
flytekit
testing
extend

.. toctree::
:maxdepth: 1
Expand All @@ -46,17 +33,6 @@ Conributing
tasks.extend
types.extend

******************************
Additional Flyte Documentation
******************************

.. toctree::
:maxdepth: 1
:caption: Other Documentation

Flyte Documentation <http://flyte.readthedocs.io/>
Flytekit Learn by Example <http://flytecookbook.readthedocs.io/>


.. toctree::
:maxdepth: 1
Expand Down

0 comments on commit c7ff1e8

Please sign in to comment.