Skip to content

Commit 56fec73

Browse files
committed
Website SEO updates
1 parent 20e10b4 commit 56fec73

39 files changed

+105
-97
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ const userManagement = useBuildUserManagement({
371371

372372
The first beta release of FireCMS v3.0.0.
373373
Check all the new features and improvements in the [documentation](./what_is_new_v3)
374-
and the [migration guide](./docs/migrating_from_v2).
374+
and the [migration guide](./cloud/migrating_from_v2).
375375

376376
## [2.2.0] - 2023-11-09
377377

website/blog/2021-10-09-exciting_times.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ We have also added a lot of minor performance tweaks as well as design tweaks
6262
and improvements, including a very awesome new **dark mode**!
6363

6464
If you are using `FirebaseCMSApp` (previously `CMSApp`), so FireCMS as a
65-
standalone app, you will need to update some APIs (see the [Migrating from alpha versions](../docs/1.0.0/migrating_from_alpha_versions)).
65+
standalone app, you will need to update some APIs.
6666

6767
But, but, but...
6868
If you need more customisation you can now completely
@@ -84,18 +84,18 @@ behind their respective interfaces. This means you can replace any of those
8484
parts with your custom implementation!
8585

8686
We have three new types that abstract away the services provided by Firebase:
87-
- [`AuthDelegate`](/docs/1.0.0/api/types/authdelegate), in charge of handling
87+
- AuthDelegate, in charge of handling
8888
the auth operation such as login or sign out, and build the logged-in user.
89-
- [`DataSource`](/docs/1.0.0/api/interfaces/datasource), in charge of handling data
89+
- DataSource, in charge of handling data
9090
operation (fetch, listen, save, delete).
91-
- [`StorageSource`](/docs/1.0.0/api/interfaces/storagesource), in charge of dealing
91+
- StorageSource, in charge of dealing
9292
with file storage operations.
9393

9494
We provide implementation for using Firebase Auth, Firestore and Firebase Storage,
9595
assigned by default if you use `FirebaseCMSApp`.
9696

9797
This means that you are now able to use FireCMS with any backend, auth or storage
98-
solution. If you want to go this way, you can check an [example implementation](../docs/1.0.0/custom_cms_app)
98+
solution. If you want to go this way, you can check an example implementation
9999
of FireCMS that uses the internal components instead of `FirebaseCMSApp`
100100

101101
:::note How did it go?

website/blog/2024-01-31-beta_launch_3_0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ provide support, and a live web app where you can find your projects.
185185

186186
### How to get started?
187187

188-
Go to [app.firecms.co](http://app.firecms.co/) and create your project.
188+
Go to [app.firecms.co](https://app.firecms.co/) and create your project.
189189

190190
### What are you going to build?
191191

website/docs/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ const userManagement = useBuildUserManagement({
375375

376376
The first beta release of FireCMS v3.0.0.
377377
Check all the new features and improvements in the [documentation](./what_is_new_v3)
378-
and the [migration guide](./docs/migrating_from_v2).
378+
and the [migration guide](./cloud/migrating_from_v2).
379379

380380
## [2.2.0] - 2023-11-09
381381

website/docs/api_index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
In this section you will find all the possible configurations and types
22
related to FireCMS.
33

4-
For a general overview of the library it's better to start in the [docs](./index.mdx)
5-
section

website/docs/cloud/cloud_quickstart.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ have already created in the Cloud version... Awesome!
6565

6666
If you want to deploy to FireCMS Cloud your module must export a
6767
`FireCMSAppConfig` object. You can find more information about this object
68-
in the [App config section](./cloud/app_config) reference.
68+
in the [App config section](./app_config) reference.
6969

7070
:::important
7171
Vite uses the default url `http://127.0.0.1:5173` for the development server

website/docs/cloud/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ Just sign up and start using it!
3939
<DocsCloudCTA/>
4040

4141
After you have created your FireCMS project, you can either use it directly or [customize it
42-
by uploading your own code](./cloud/quickstart).
42+
by uploading your own code](./quickstart).
4343

website/docs/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ FireCMS imposes **no data structure restrictions**, allowing seamless integratio
2626
FireCMS **3.0** is the latest version of FireCMS. It can be used in different ways:
2727
- As a managed service in the Cloud: [**FireCMS Cloud**](https://app.firecms.co). In this version you can create and
2828
manage your content in a user-friendly interface, and use it as a no-code tool, or extend its functionality with code.
29-
- You also have self-hosted options in the [**PRO**](/docs/pro) plan and community plan. In this versions, you need to deploy FireCMS to
29+
- You also have self-hosted options in the [**PRO**](/pro) plan and community plan. In this versions, you need to deploy FireCMS to
3030
your server, and you have full control over the code, with many customization options.
3131

3232
### Navigation
@@ -43,5 +43,5 @@ for more information.
4343

4444
You have two main ways of creating the top-level views in FireCMS, either creating **entity collections** that get
4545
mapped to CMS views, or create your own top-level **React views**:
46-
- Check all the possible configurations for defining [**collections**](./collections/collections)
46+
- Check all the possible configurations for defining [**collections**](./collections)
4747
- Otherwise, you can define your own [**custom top-level views**](./custom_top_level_views.mdx).

website/docs/pro/entity_history.mdx

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,15 @@ import React from "react";
2929
import { FirebaseCMSApp } from "@firecms/core";
3030
import { useEntityHistoryPlugin } from "@firecms/entity_history";
3131

32-
// Basic setup with default options
33-
const entityHistoryPlugin = useEntityHistoryPlugin();
3432

3533
export default function App() {
34+
35+
// Basic setup with default options
36+
const entityHistoryPlugin = useEntityHistoryPlugin({
37+
// This can be overridden by setting `history: false` in a specific collection
38+
defaultEnabled: true
39+
});
40+
3641
return <FirebaseCMSApp
3742
name={"My Online Shop"}
3843
plugins={[entityHistoryPlugin]}
@@ -64,34 +69,34 @@ const productsCollection = buildCollection({
6469

6570
## Advanced Configuration
6671

67-
You can customize the plugin's behavior by passing props to `useEntityHistoryPlugin`:
72+
You can customize the plugin's behavior by passing props to `useEntityHistoryPlugin`.
73+
If you are using the user management plugin, you can provide a function to resolve user details from a UID.
74+
You can also pass your own custom `getUser` function to fetch user details.
6875

6976
```tsx
7077
import { useEntityHistoryPlugin } from "@firecms/entity_history";
7178
import { User } from "@firecms/core";
7279

73-
// Example function to fetch user details
74-
const myGetUserFunction = (uid: string): User | null => {
75-
// Replace with your actual user fetching logic
76-
if (uid === "user123") {
77-
return {
78-
uid: "user123",
79-
displayName: "John Doe",
80-
email: "john.doe@example.com",
81-
photoURL: "url_to_photo"
82-
} as User;
83-
}
84-
return null;
85-
};
86-
87-
const entityHistoryPlugin = useEntityHistoryPlugin({
88-
// Enable history for all collections by default
89-
// This can be overridden by setting `history: false` in a specific collection
90-
defaultEnabled: true,
91-
92-
// Provide a function to resolve user details from a UID
93-
getUser: myGetUserFunction
94-
});
80+
export function App() {
81+
82+
// ...
83+
84+
const userManagement = useBuildUserManagement({
85+
dataSourceDelegate: firestoreDelegate,
86+
authController: authController
87+
});
88+
89+
const entityHistoryPlugin = useEntityHistoryPlugin({
90+
// Enable history for all collections by default
91+
// This can be overridden by setting `history: false` in a specific collection
92+
defaultEnabled: true,
93+
94+
// Provide a function to resolve user details from a UID
95+
getUser: userManagement.getUser
96+
});
97+
98+
// ...
99+
}
95100
```
96101

97102
## Configuration Options

website/docs/pro/sample_pro.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,4 +285,4 @@ the routing, but you are free to replace it with your own routing system.
285285
```
286286

287287

288-
Find more details about the main components in the [Main Components](main_components) section.
288+
Find more details about the main components in the [Main Components](../self/main_components) section.

0 commit comments

Comments
 (0)