Skip to content

Commit

Permalink
Merge pull request writer#667 from FabienArcellier/chore/improve-dev-…
Browse files Browse the repository at this point in the history
…documentation-environment

docs: configures the documentation architecture for the local environment
  • Loading branch information
ramedina86 authored Dec 10, 2024
2 parents b95636a + ea92063 commit 00464b0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 16 deletions.
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

0 comments on commit 00464b0

Please sign in to comment.