Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: configures the documentation architecture for the local environment #667

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/framework/seo.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "SEO"
title: "Seo and social sharing"
mode: "wide"
---

Expand Down Expand Up @@ -41,6 +41,7 @@ writer.serve.configure_webpage_metadata(

You can also use a function to generate the meta tags dynamically.

*./server_setup.py*
```python
def _meta():
last_news = db.get_last_news()
Expand All @@ -57,6 +58,7 @@ writer.serve.configure_webpage_metadata(meta=_meta)

When you share a link on social networks, they will try to fetch the metadata of the page to display a preview.

*./server_setup.py*
```python
writer.serve.configure_webpage_metadata(
opengraph_tags= {
Expand All @@ -66,9 +68,11 @@ writer.serve.configure_webpage_metadata(
"og:url": "https://myapp.com"
}
)
```

You can also use a function to generate the opengraph tags dynamically.

*./server_setup.py*
```python
def _opengraph_tags():
last_news = db.get_last_news()
Expand Down
31 changes: 16 additions & 15 deletions docs/mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,20 @@
"framework/introduction",
"framework/quickstart",
"framework/ai-module",
"framework/cloud-deploy",
"framework/sample-apps"
"framework/sample-apps",
"framework/component-list-link"
]
},
{
"group": "Guides",
"pages": [
"framework/application-state",
"framework/event-handlers",
"framework/backend-initiated-actions",
"framework/builder-basics",
"framework/event-handlers",
"framework/handling-inputs",
"framework/dataframe",
"framework/backend-driven-ui",
"framework/stylesheets",
"framework/frontend-scripts",
"framework/custom-components",
"framework/authentication"
"framework/dataframe",
"framework/repeater"
]
},
{
Expand All @@ -64,19 +61,23 @@
"group": "Deployment",
"pages": [
"framework/cloud-deploy",
"framework/deploy-with-docker",
"framework/testing"
"framework/deploy-with-docker"
]
},
{
"group": "Advanced",
"pages": [
"framework/repeater",
"framework/backend-initiated-actions",
"framework/authentication",
"framework/backend-driven-ui",
"framework/custom-components",
"framework/custom-server",
"framework/frontend-scripts",
"framework/page-routes",
"framework/sessions",
"framework/custom-server",
"framework/state-schema"
"framework/state-schema",
"framework/stylesheets",
"framework/testing",
"framework/seo"
]
},
{
Expand Down
Loading