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

Add html meta tags #1382

Merged
merged 4 commits into from
Apr 26, 2022
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
8 changes: 8 additions & 0 deletions docs/source/actions.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "Portal actions can be used to build UI elements that adapt to the available actions, such as displaying only certain tabs for an authenticated user."
"property=og:description": "Portal actions can be used to build UI elements that adapt to the available actions, such as displaying only certain tabs for an authenticated user."
"property=og:title": "Portal Actions"
"keywords": "Plone, plone.restapi, REST, API, Portal Actions"
---

# Portal Actions

Plone has the concept of configurable actions called `portal_actions`.
Expand Down
8 changes: 8 additions & 0 deletions docs/source/addons.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "Add-on product records can be addressed through the @addons endpoint in a Plone site."
"property=og:description": "Add-on product records can be addressed through the @addons endpoint in a Plone site."
"property=og:title": "Add-ons"
"keywords": "Plone, plone.restapi, REST, API, Add-ons"
---

# Add-ons

Add-on product records can be addressed through the `@addons` endpoint in a Plone site.
Expand Down
10 changes: 9 additions & 1 deletion docs/source/authentication.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
---
html_meta:
"description": "plone.restapi uses PlonePAS for authentication."
"property=og:description": "`plone.restapi uses PlonePAS for authentication."
"property=og:title": "Authentication"
"keywords": "Plone, plone.restapi, REST, API, Authentication, "
---

# Authentication

`plone.restapi` uses Plone PAS for authentication.
`plone.restapi` uses [`PlonePAS`](https://github.com/plone/Products.PlonePAS) for authentication.

That means that any authentication method supported by an installed PAS plugin should work, assuming it's an authentication method that makes sense to use with an API.

Expand Down
8 changes: 8 additions & 0 deletions docs/source/batching.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "Representations of collection-like resources are batched or paginated if the size of the resultset exceeds the batching size."
"property=og:description": "Representations of collection-like resources are batched or paginated if the size of the resultset exceeds the batching size"
"property=og:title": "Batching"
"keywords": "Plone, plone.restapi, REST, API, Batching"
---

# Batching

Representations of collection-like resources are batched or paginated if the
Expand Down
10 changes: 8 additions & 2 deletions docs/source/blocks.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
---
html_meta:
"description": "The plone.restapi package gives support for Volto blocks providing a Dexterity behavior plone.restapi.behaviors.IBlocks."
"property=og:description": "The plone.restapi package gives support for Volto blocks providing a Dexterity behavior plone.restapi.behaviors.IBlocks."
"property=og:title": "Volto Blocks support"
"keywords": "Plone, plone.restapi, REST, API, Volto, Blocks, support"
---

# Volto Blocks support

```{note}
The `plone.restapi` package gives support for Volto blocks providing a Dexterity behavior `plone.restapi.behaviors.IBlocks`.
It is used to enable Volto blocks in any content type.
Volto then renders the blocks engine for all the content types that have this behavior enabled.
```


## Retrieving blocks on a content object
Expand Down
8 changes: 8 additions & 0 deletions docs/source/breadcrumbs.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "Get the breadcrumbs for the current page with plone.restapi."
"property=og:description": "Get the breadcrumbs for the current page with plone.restapi."
"property=og:title": "Breadcrumbs"
"keywords": "Plone, plone.restapi, REST, API, Breadcrumbs"
---

(breadcrumbs)=

# Breadcrumbs
Expand Down
8 changes: 8 additions & 0 deletions docs/source/comments.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "Plone offers to users a feature to post comments on any content object with plone.app.discussion."
"property=og:description": "Plone offers to users a feature to post comments on any content object with plone.app.discussion."
"property=og:title": "Comments"
"keywords": "Plone, plone.restapi, REST, API, Comments, plone.app.discussion"
---

# Comments

Plone offers to users a feature to post comments on any content object with `plone.app.discussion`.
Expand Down
8 changes: 8 additions & 0 deletions docs/source/content-negotiation.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "Content negotiation is a mechanism defined in the HTTP specification that makes it possible to serve different versions of a document (or more generally, a resource representation) at the same URI, so that user agents can specify which version fit their capabilities the best."
"property=og:description": "Content negotiation is a mechanism defined in the HTTP specification that makes it possible to serve different versions of a document (or more generally, a resource representation) at the same URI, so that user agents can specify which version fit their capabilities the best."
"property=og:title": "Content Negotiation"
"keywords": "Plone, plone.restapi, REST, API, Content, Negotiation"
---

# Content Negotiation

[Content negotiation](https://datatracker.ietf.org/doc/html/rfc7231#section-5.3) is a mechanism defined in the [HTTP specification](https://datatracker.ietf.org/doc/html/rfc7231) that makes it possible to serve different versions of a document (or more generally, a resource representation) at the same URI, so that user agents can specify which version fit their capabilities the best.
Expand Down
8 changes: 8 additions & 0 deletions docs/source/content.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "plone.restapi not only exposes content objects via a RESTful API, but the API consumer can create, read, update, and delete a content object."
"property=og:description": "plone.restapi not only exposes content objects via a RESTful API, but the API consumer can create, read, update, and delete a content object."
"property=og:title": "Content Manipulation"
"keywords": "Plone, plone.restapi, REST, API, Content, Manipulation"
---

# Content Manipulation

`plone.restapi` does not only expose content objects via a RESTful API.
Expand Down
10 changes: 10 additions & 0 deletions docs/source/contextnavigation.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
---
html_meta:
"description": "The @contextnavigation endpoint uses the same semantics as the classic Plone navigation portlet. Instead of storing the portlet configuration in a portlet assignment storage, you can pass these as
parameters to the service or expand the component."
"property=og:description": "The @contextnavigation endpoint uses the same semantics as the classic Plone navigation portlet. Instead of storing the portlet configuration in a portlet assignment storage, you can pass these as
parameters to the service or expand the component."
"property=og:title": "Context Navigation"
"keywords": "Plone, plone.restapi, REST, API, Context, Navigation"
---

(contextnavigation)=

# Context Navigation
Expand Down
8 changes: 8 additions & 0 deletions docs/source/contributing.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "Contributing to plone.restapi"
"property=og:description": "Contributing to plone.restapi"
"property=og:title": "Contributing to plone.restapi"
"keywords": "Plone, plone.restapi, REST, API, Contributing, documentation"
---

# Contributing to plone.restapi


Expand Down
8 changes: 8 additions & 0 deletions docs/source/controlpanels.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "Control panels in Plone allow you to configure the global site setup of a Plone site. The @controlpanels endpoint in plone.restapi allows you to list all existing control panels in a Plone site, and to retrieve or edit the settings of a specific control panel."
"property=og:description": "Control panels in Plone allow you to configure the global site setup of a Plone site. The @controlpanels endpoint in plone.restapi allows you to list all existing control panels in a Plone site, and to retrieve or edit the settings of a specific control panel."
"property=og:title": "Control Panels"
"keywords": "Plone, plone.restapi, REST, API, Control, Panels"
---

# Control Panels

Control panels in Plone allow you to configure the global site setup of a Plone site.
Expand Down
8 changes: 8 additions & 0 deletions docs/source/conventions.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "Naming convention for REST API resources and endpoints."
"property=og:description": "Naming convention for REST API resources and endpoints."
"property=og:title": "Conventions"
"keywords": "Plone, plone.restapi, REST, API, Conventions"
---

# Conventions


Expand Down
8 changes: 8 additions & 0 deletions docs/source/copymove.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "To copy a content object, use the /@copy endpoint at the destination's URL with the source object specified in the request body. Similarly use the /@move endpoint to move an object."
"property=og:description": "To copy a content object, use the /@copy endpoint at the destination's URL with the source object specified in the request body. Similarly use the /@move endpoint to move an object."
"property=og:title": "Copy and Move"
"keywords": "Plone, plone.restapi, REST, API, Copy, Move"
---

# Copy and Move


Expand Down
8 changes: 8 additions & 0 deletions docs/source/customization.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "Customizing the API with the IFieldSerializer adapter."
"property=og:description": "Customizing the API with the IFieldSerializer adapter."
"property=og:title": "Customizing the API"
"keywords": "Plone, plone.restapi, REST, API, Customizing, IFieldSerializer, adapter"
---

# Customizing the API


Expand Down
8 changes: 8 additions & 0 deletions docs/source/database.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "The @database endpoint exposes system information about the Plone database (ZODB)."
"property=og:description": "The @database endpoint exposes system information about the Plone database (ZODB)."
"property=og:title": "Database"
"keywords": "Plone, plone.restapi, REST, API, Database"
---

(database)=

# Database
Expand Down
8 changes: 8 additions & 0 deletions docs/source/email-notification.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "Plone allows the user to contact the site owner via a form on the website which sends an email notification."
"property=og:description": "Plone allows the user to contact the site owner via a form on the website which sends an email notification."
"property=og:title": "Email Notification"
"keywords": "Plone, plone.restapi, REST, API, Email, Notification"
---

# Email Notification


Expand Down
8 changes: 8 additions & 0 deletions docs/source/email-send.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "To send an email to an arbitrary email address use the /@email-send endpoint."
"property=og:description": "To send an email to an arbitrary email address use the /@email-send endpoint."
"property=og:title": "Email Send"
"keywords": "Plone, plone.restapi, REST, API, Email, Send"
---

# Email Send


Expand Down
8 changes: 8 additions & 0 deletions docs/source/expansion.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "Expansion is a mechanism in plone.restapi to embed additional components—such as navigation, breadcrumbs, schema, or workflows—within the main content response. This helps the API consumers avoid unnecessary requests."
"property=og:description": "Expansion is a mechanism in plone.restapi to embed additional components—such as navigation, breadcrumbs, schema, or workflows—within the main content response. This helps the API consumers avoid unnecessary requests."
"property=og:title": "Expansion"
"keywords": "Plone, plone.restapi, REST, API, Expansion"
---

(expansion-label)=

# Expansion
Expand Down
8 changes: 8 additions & 0 deletions docs/source/exploring.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "To discover the API interactively, using Postman is recommended."
"property=og:description": "To discover the API interactively, using Postman is recommended."
"property=og:title": "Explore the API using Postman"
"keywords": "Plone, plone.restapi, REST, API, Explore, Postman"
---

(exploring-api-postman-onboarding)=

# Explore the API using Postman
Expand Down
8 changes: 8 additions & 0 deletions docs/source/glossary.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "plone.restapi Glossary"
"property=og:description": "plone.restapi Glossary"
"property=og:title": "Glossary"
"keywords": "Plone, plone.restapi, REST, API, Glossary"
---

# Glossary

```{glossary}
Expand Down
8 changes: 8 additions & 0 deletions docs/source/groups.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "Available groups in a Plone site can be created, queried, updated, and deleted by interacting with the /@groups endpoint on the portal root."
"property=og:description": "Available groups in a Plone site can be created, queried, updated, and deleted by interacting with the /@groups endpoint on the portal root."
"property=og:title": "Groups"
"keywords": "Plone, plone.restapi, REST, API, Groups"
---

# Groups

Available groups in a Plone site can be created, queried, updated, and deleted by interacting with the `/@groups` endpoint on the portal root.
Expand Down
8 changes: 8 additions & 0 deletions docs/source/history.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "The @history endpoint exposes history and versioning information on previous versions of the content."
"property=og:description": "The @history endpoint exposes history and versioning information on previous versions of the content."
"property=og:title": "History"
"keywords": "Plone, plone.restapi, REST, API, History"
---

# History

The `@history` endpoint exposes history and versioning information on previous versions of the content.
Expand Down
8 changes: 8 additions & 0 deletions docs/source/http-status-codes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "A list of HTTP status codes that are used in plone.restapi."
"property=og:description": "A list of HTTP status codes that are used in plone.restapi."
"property=og:title": "HTTP Status Codes"
"keywords": "Plone, plone.restapi, REST, API, HTTP, Status, Codes"
---

# HTTP Status Codes

This is the list of HTTP status codes that are used in `plone.restapi`.
Expand Down
8 changes: 8 additions & 0 deletions docs/source/i18n.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "Plone provides user-interface translations, or internationalization, using the plone.app.locales package."
"property=og:description": "Plone provides user-interface translations, or internationalization, using the plone.app.locales package."
"property=og:title": "i18n: internationalization of screen messages"
"keywords": "Plone, plone.restapi, REST, API, i18n, internationalization, screen, messages"
---

# i18n: internationalization of screen messages

Plone already provides user-interface translations using the [`plone.app.locales`](https://pypi.org/project/plone.app.locales/) packages.
Expand Down
8 changes: 8 additions & 0 deletions docs/source/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "A RESTful API for Plone."
"property=og:description": "A RESTful API for Plone."
"property=og:title": "REST API"
"keywords": "Plone, plone.restapi, REST, API"
---

% plone.restapi documentation master file, created by
% sphinx-quickstart on Mon Apr 28 13:04:12 2014.
% You can adapt this file completely to your liking, but it should at least
Expand Down
8 changes: 8 additions & 0 deletions docs/source/introduction.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "A hypermedia API provides an entry point to the API, which contains hyperlinks the clients can follow."
"property=og:description": "A hypermedia API provides an entry point to the API, which contains hyperlinks the clients can follow."
"property=og:title": "Introduction"
"keywords": "Plone, plone.restapi, REST, API, Introduction"
---

# Introduction

```{sidebar} API Browser Quick Guide
Expand Down
8 changes: 8 additions & 0 deletions docs/source/locking.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "Locking is a mechanism to prevent users from accidentally overriding each other's changes."
"property=og:description": "Locking is a mechanism to prevent users from accidentally overriding each other's changes."
"property=og:title": "Locking"
"keywords": "Plone, plone.restapi, REST, API, Locking"
---

# Locking

Locking is a mechanism to prevent users from accidentally overriding each other's changes.
Expand Down
8 changes: 8 additions & 0 deletions docs/source/navigation.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "Get the top-level navigation items or navigation item tree with the navigation endpoint."
"property=og:description": "Get the top-level navigation items or navigation item tree with the navigation endpoint."
"property=og:title": "Navigation"
"keywords": "Plone, plone.restapi, REST, API, Navigation"
---

(navigation)=

# Navigation
Expand Down
8 changes: 8 additions & 0 deletions docs/source/plone-content.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "A list of all standard Plone content representations with sample requests and responses."
"property=og:description": "A list of all standard Plone content representations with sample requests and responses."
"property=og:title": "Plone Content"
"keywords": "Plone, plone.restapi, REST, API, Plone, Content"
---

# Plone Content

How to get all standard Plone content representations.
Expand Down
8 changes: 8 additions & 0 deletions docs/source/principals.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "The principal endpoint will search for all the available principals in the local PAS plugins when given a query string. We define a principal as any user or group in the system."
"property=og:description": "The principal endpoint will search for all the available principals in the local PAS plugins when given a query string. We define a principal as any user or group in the system."
"property=og:title": "Principals"
"keywords": "Plone, plone.restapi, REST, API, Principals"
---

# Principals

This endpoint will search for all the available principals in the local PAS plugins when given a query string.
Expand Down
8 changes: 8 additions & 0 deletions docs/source/querystring.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
html_meta:
"description": "The @querystring endpoint returns the querystring configuration of plone.app.querystring."
"property=og:description": "The @querystring endpoint returns the querystring configuration of plone.app.querystring."
"property=og:title": "Querystring"
"keywords": "Plone, plone.restapi, REST, API, Querystring"
---

# Querystring

The `@querystring` endpoint returns the `querystring` configuration of `plone.app.querystring`.
Expand Down
Loading