mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-07 22:28:48 +00:00
improve docs header, nav and social cards
This commit is contained in:
parent
aa33cf7295
commit
4d88ea1883
15 changed files with 293 additions and 27 deletions
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: API Guide
|
||||
description: How to fetch data from an API in Homepage widgets.
|
||||
description: Get comfortable with making API calls from inside your widget.
|
||||
---
|
||||
|
||||
Homepage provides the `useWidgetAPI` hook to help you fetch data from an API. This hook insures that the data is fetched using a proxy, and is critical for security.
|
||||
|
@ -29,7 +29,7 @@ The `widget` argument is the metadata object for the widget. It contains informa
|
|||
|
||||
### `endpoint`
|
||||
|
||||
The `endpoint` argument is the name of the endpoint to fetch data from. This is [defined in the widget metadata object](widget.md#endpoint). The `useWidgetAPI` hook uses this argument to determine which endpoint to fetch data from.
|
||||
The `endpoint` argument is the name of the endpoint to fetch data from. This is [defined in the widget metadata object](metadata.md#endpoint). The `useWidgetAPI` hook uses this argument to determine which endpoint to fetch data from.
|
||||
|
||||
If no endpoint is provided, the `useWidgetAPI` hook will call the API endpoint defined in the widget metadata object directly.
|
||||
|
||||
|
@ -47,4 +47,4 @@ export default function Component({ service }) {
|
|||
}
|
||||
```
|
||||
|
||||
The `params` must be [whitelisted in the widget metadata object](widget.md#params). This is done to prevent arbitrary query parameters from being passed to the API.
|
||||
The `params` must be [whitelisted in the widget metadata object](metadata.md#params). This is done to prevent arbitrary query parameters from being passed to the API.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: Component Guide
|
||||
description: How to create and configure Homepage widget components.
|
||||
description: Learn more about the widget component in Homepage, and how to build your widget UI.
|
||||
---
|
||||
|
||||
Homepage widgets are built using React components. These components are responsible for fetching data from the API and rendering the widget UI. Homepage provides a set of hooks and utilities to help you build your widget component.
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
---
|
||||
title: Homepage Widget Guides
|
||||
description: How to create and configure Homepage widgets.
|
||||
title: Guides & Tutorials
|
||||
description: Learn how to create and customize widgets in Homepage. Explore translations, widget components, widget metadata, proxy handlers, and making API calls.
|
||||
icon: fontawesome/solid/graduation-cap
|
||||
---
|
||||
|
||||
Widgets are a core component of Homepage. They are used to display information about your system, services, and environment.
|
||||
|
||||
## Overview
|
||||
|
||||
If you are new to Homepage widgets, and are looking to create a new widget, please follow along with the guide here: [Widget Guide](guide.md).
|
||||
If you are new to Homepage widgets, and are looking to create a new widget, please follow along with the guide here: [Widget Tutorial](tutorial.md).
|
||||
|
||||
### Translations
|
||||
|
||||
|
@ -27,7 +28,7 @@ If you are looking to learn more about widget components, please refer to the gu
|
|||
|
||||
Widget metadata defines the configuration of the widget. It defines the API endpoint to fetch data from, the proxy handler to use, and any data mappings.
|
||||
|
||||
If you are looking to learn more about widget metadata, endpoint and data mapping, please refer to the guide here: [Metadata Guide](widget.md).
|
||||
If you are looking to learn more about widget metadata, endpoint and data mapping, please refer to the guide here: [Metadata Guide](metadata.md).
|
||||
|
||||
If you are looking to learn more about proxy handlers, please refer to the guide here: [Proxies Guide](proxies.md).
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: Metadata Guide
|
||||
description: How to create and configure Homepage widget metadata.
|
||||
description: Explore all the metadata properties that can be used to configure a widget in Homepage.
|
||||
---
|
||||
|
||||
Here, we will go over how to create and configure Homepage widget metadata. Metadata is a JS object that contains information about the widget, such as the API endpoint, proxy handler, and mappings. This metadata is used by Homepage to fetch data from the API and pass it to the widget.
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: Proxies Guide
|
||||
description: How to use and create Homepage widget proxies.
|
||||
description: Learn about proxy handlers in Homepage, and how to securely fetch data from an API.
|
||||
---
|
||||
|
||||
Homepage includes a set of built-in proxy handlers that can be used to fetch data from an API. We will go over how to use these proxy handlers and briefly cover how to create your own.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: Widget Guide
|
||||
description: How to create a custom widget for Homepage.
|
||||
title: Widget Tutorial
|
||||
description: Follow along with this guide to learn how to create a custom widget for Homepage. We'll cover the basic structure of a widget, how to use translations, and how to fetch data from an API.
|
||||
---
|
||||
|
||||
In this guide, we'll walk through the process of creating a custom widget for Homepage. We'll cover the basic structure of a widget, how to use translations, and how to fetch data from an API. By the end of this guide, you'll have a solid understanding of how to build your own custom widget.
|
Loading…
Add table
Add a link
Reference in a new issue