diff --git a/README.md b/README.md index 87a24d4..3aa977d 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ icon = ":books:" url_path = "my_books" # You can override the default url path for a page ``` -Example with sections: +Example with sections, `.stremalit/pages_sections.toml`: ```toml [[pages]] @@ -91,6 +91,9 @@ from st_pages import add_page_title, get_nav_from_toml st.set_page_config(layout="wide") +# If you want to use the no-sections version, this +# defaults to looking in .streamlit/pages.toml, so you can +# just call `get_nav_from_toml()` nav = get_nav_from_toml(".streamlit/pages_sections.toml") st.logo("logo.png")