Skip to content

Commit

Permalink
update api reference urls
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Gotsman committed Jul 19, 2024
1 parent df26f04 commit 203a0db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions docs/getting-started/configuration.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
```python exec
config_api_ref_url = "/docs/api-reference/config/"
cli_api_ref_url = "/docs/api-reference/cli/"
from pcweb.pages.docs import api_reference
```

# Configuration
Expand All @@ -27,7 +26,7 @@ config = rx.Config(
)
```

See the [config reference]({config_api_ref_url}) for all the parameters available.
See the [config reference]({api_reference.cli.path}) for all the parameters available.

## Environment Variables

Expand All @@ -46,7 +45,7 @@ Finally, you can override the configuration file and environment variables by pa
reflex run --frontend-port 3001
```

See the [CLI reference]({cli_api_ref_url}) for all the arguments available.
See the [CLI reference]({api_reference.config.path}) for all the arguments available.

## Customizable App Data Directory

Expand Down
2 changes: 1 addition & 1 deletion pcweb/pages/docs/apiref.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
name = module.__name__.lower()
docs = generate_docs(name, s)
title = name.replace("_", " ").title()
page_data = docpage(f"/docs/api-reference/{name}", title)(docs)
page_data = docpage(f"/docs/api-reference/{name}/", title)(docs)
page_data.title = page_data.title.split('·')[0].strip()
pages.append(page_data)

0 comments on commit 203a0db

Please sign in to comment.