Skip to content

Commit 530b42c

Browse files
committed
Merge branch 'dev'
2 parents 2056be3 + 7c0492b commit 530b42c

File tree

117 files changed

+10020
-1299
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+10020
-1299
lines changed

.frontmatter/database/mediaDb.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

.github/workflows/settings-verification.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,17 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v2
16-
- uses: actions/setup-node@v3
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
1717
with:
18-
node-version: 16
19-
cache: 'npm'
18+
node-version: 18
19+
cache: "npm"
2020

2121
- name: Install the dependencies
2222
run: npm ci
23-
23+
2424
- name: Verify missing settings
2525
run: node scripts/verify-settings.js ${{ github.ref_name }}
2626

27+
- name: Verify missing commands
28+
run: node scripts/verify-commands.js ${{ github.ref_name }}

components/Docs/Page.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as React from 'react';
22
import { PageFrontMatter } from '../../models/PageFrontMatter';
3-
import { PageActions } from './PageActions';
43
import { PageInfo } from './PageInfo';
54

65
export interface IPageProps {
@@ -13,8 +12,6 @@ export const Page: React.FunctionComponent<React.PropsWithChildren<IPageProps>>
1312
return (
1413
<div className={`max-w-7xl mx-auto px-4 sm:px-6 lg:px-8`}>
1514
<div className={`relative my-16 min-w-0 w-full flex-auto lg:max-h-full`} style={{ marginLeft: '-1px' }}>
16-
<PageActions page={page} />
17-
1815
{children}
1916

2017
<PageInfo page={page} items={items} />

components/Docs/PageActions.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ export const PageActions: React.FunctionComponent<IPageActionsProps> = ({ page }
1313
}
1414

1515
return (
16-
<div className={`absolute right-0`}>
16+
<div className={`mt-16 mb-8`}>
1717
<a
18-
className={`flex items-center text-whisper-500 hover:text-whisper-900 -mt-4`}
18+
className={`flex items-center text-whisper-900 hover:text-whisper-500`}
1919
href={`${Extension.githubDocs}/edit/${process.env.NEXT_PUBLIC_VERCEL_ENV === "production" ? "main" : "dev"}/content/docs/${page.fileName}.md`}
2020
target="_blank"
2121
rel={`noopener noreferrer`}>
22-
<PencilIcon className={`w-4 h-4 mr-2`} /> <span>Edit</span>
22+
<PencilIcon className={`w-4 h-4 mr-2`} /> <span>Edit page</span>
2323
</a>
2424
</div>
2525
);

components/Docs/PageInfo.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import * as React from 'react';
33
import { useMemo } from 'react';
44
import { Extension } from '../../constants/extension';
55
import { PageFrontMatter } from '../../models/PageFrontMatter';
6-
import { GitHub } from '../Images/GitHub';
76
import Giscus from "@giscus/react";
7+
import { PageActions } from './PageActions';
88

99
export interface IPageInfoProps {
1010
items: PageFrontMatter[];
@@ -36,13 +36,15 @@ export const PageInfo: React.FunctionComponent<IPageInfoProps> = ({ page, items
3636
}
3737

3838
const date = parseJSON(page.lastmod);
39-
const feedbackUrl = `${Extension.issueLink}/new?title=Feedback:%20&body=%0A%0A%5BEnter%20feedback%20here%5D%0A%0A%0A---%0A%23%23%23%23%20Document%20Details%0A%0A%E2%9A%A0%20*Do%20not%20edit%20this%20section*%0A%0A*%20ID%3A%20${page.fileName}%0A*%20URL%3A%20${`${process.env.NEXT_PUBLIC_VERCEL_ENV === "production" ? Extension.mainSite : Extension.betaSite}/docs/${page.fileName}`}%0A*%20Content%20Source%3A%20${encodeURIComponent(`/content/docs/${page.fileName}.md`)}`;
39+
// const feedbackUrl = `${Extension.issueLink}/new?title=Feedback:%20&body=%0A%0A%5BEnter%20feedback%20here%5D%0A%0A%0A---%0A%23%23%23%23%20Document%20Details%0A%0A%E2%9A%A0%20*Do%20not%20edit%20this%20section*%0A%0A*%20ID%3A%20${page.fileName}%0A*%20URL%3A%20${`${process.env.NEXT_PUBLIC_VERCEL_ENV === "production" ? Extension.mainSite : Extension.betaSite}/docs/${page.fileName}`}%0A*%20Content%20Source%3A%20${encodeURIComponent(`/content/docs/${page.fileName}.md`)}`;
4040

4141
return (
4242
<>
43+
<PageActions page={page} />
44+
4345
{
4446
(prevPage || nextPage) && (
45-
<div className={`mt-16 w-full flex justify-between gap-16 text-xl`}>
47+
<div className={`w-full flex justify-between gap-16 text-xl`}>
4648
{(prevPage && prevPage.slug && prevPage.title) && (
4749
<a href={`/docs/${(prevPage as PageFrontMatter).slug}`}
4850
title={prevPage.title}

components/Meta/OtherMeta.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,18 @@ export const OtherMeta: React.FunctionComponent<IOtherMetaProps> = ({ image, typ
1414
return (
1515
<Head>
1616
<link rel="canonical" href={`${publicUrl()}${router?.asPath || ""}`} />
17-
17+
1818
<meta property="og:type" content={type || "website"} />
1919
<meta property="twitter:card" content="summary_large_image" />
2020

2121
<meta property="twitter:url" content={`${publicUrl()}${router?.asPath || ""}`} />
2222
<meta property="og:url" content={`${publicUrl()}${router?.asPath || ""}`} />
2323

24-
<meta property="og:image" content={`${publicUrl()}/${image}`} />
25-
<meta property="twitter:image" content={`${publicUrl()}/${image}`} />
24+
<meta property="og:image" content={`${publicUrl()}${image}`} />
25+
<meta property="twitter:image" content={`${publicUrl()}${image}`} />
26+
27+
<meta property="og:type" content="website" />
28+
<meta property="twitter:domain" content="beta.frontmatter.codes" />
2629
</Head>
2730
);
2831
};

components/Page/DocsLayout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ export const DocsLayout: React.FunctionComponent<React.PropsWithChildren<IDocsLa
1818
const mendableRef = React.useRef<HTMLDivElement>(null);
1919

2020
return (
21-
<div className={`lg:ml-72 xl:ml-80`}>
21+
<div className={`lg:ml-72 xl:ml-96`}>
2222

23-
<aside className={`fixed inset-y-0 left-0 z-40 contents w-72 overflow-y-auto px-6 pt-4 pb-8 lg:block xl:w-80 lg:pr-8 lg:border-r lg:border-vulcan-300`}>
23+
<aside className={`fixed bg-vulcan-600 inset-y-0 left-0 z-40 contents w-72 overflow-y-auto px-6 pt-4 pb-8 lg:block xl:w-96 lg:pr-8 lg:border-r lg:border-vulcan-300`}>
2424
<div className='ml-auto'>
2525
<Header navItems={navItems} />
2626
</div>

components/Page/Header.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ export interface IHeaderProps {
1212
navItems?: PageFrontMatter[];
1313
}
1414

15-
const Header: React.FunctionComponent<IHeaderProps> = forwardRef(({navItems}: React.PropsWithChildren<IHeaderProps>, ref: ForwardedRef<HTMLElement>
16-
) => {
15+
const Header: React.FunctionComponent<IHeaderProps> = forwardRef(({ navItems }: React.PropsWithChildren<IHeaderProps>, ref: ForwardedRef<HTMLElement>
16+
) => {
1717
const router = useRouter();
1818

1919
const isDocs = useMemo(() => {
2020
return router.pathname.startsWith('/docs');
2121
}, [router.pathname]);
22-
22+
2323
return (
2424
<>
2525
<header
26-
ref={ref}
27-
className={`fixed inset-x-0 top-0 z-50 flex h-16 lg:h-20 items-center justify-between px-4 transition sm:px-6 lg:z-30 lg:px-8 bg-vulcan-500/80 backdrop-blur-lg ${isDocs ? "right-0 lg:left-72 xl:left-80" : ""}`}>
26+
ref={ref}
27+
className={`fixed inset-x-0 top-0 z-50 flex h-16 lg:h-20 items-center justify-between px-4 transition sm:px-6 lg:z-30 lg:px-8 bg-vulcan-500/80 backdrop-blur-lg ${isDocs ? "right-0 lg:left-72 xl:left-96" : ""}`}>
2828

2929
<div className="flex items-center justify-between lg:hidden w-full">
3030
<Home className='h-12' />
@@ -35,12 +35,12 @@ const Header: React.FunctionComponent<IHeaderProps> = forwardRef(({navItems}: Re
3535

3636
<div className={`flex items-center gap-4`}>
3737
<Searchbox />
38-
38+
3939
<MobileNavigation navItems={navItems} />
4040
</div>
4141
</div>
4242

43-
<div className={`hidden lg:flex items-center w-full ${ isDocs ? "" : "max-w-7xl mx-auto"}`}>
43+
<div className={`hidden lg:flex items-center w-full ${isDocs ? "" : "max-w-7xl mx-auto"}`}>
4444
<div className="flex items-center justify-between w-full">
4545
{
4646
!isDocs && (
@@ -49,8 +49,8 @@ const Header: React.FunctionComponent<IHeaderProps> = forwardRef(({navItems}: Re
4949
}
5050

5151
<div className="flex items-center gap-6 ml-auto">
52-
<GlobalNavigation
53-
listClassName='flex gap-6'/>
52+
<GlobalNavigation
53+
listClassName='flex gap-6' />
5454

5555
<SocialNavigation />
5656

content/changelog/CHANGELOG.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
# Change Log
22

3-
## [9.5.0] - 2024-xx-xx
3+
## [10.0.0] - 2024-02-28 - [Release notes](https://beta.frontmatter.codes/updates/v10.0.0)
44

55
### ✨ New features
66

77
- [#731](https://github.com/estruyf/vscode-front-matter/issues/731): Added the ability to map/unmap taxonomy to multiple pages at once
8+
- [#746](https://github.com/estruyf/vscode-front-matter/issues/746): Placeholder support added to to the `slug` field
89
- [#749](https://github.com/estruyf/vscode-front-matter/issues/749): Ability to set your own filters on the content dashboard with the `frontMatter.content.filters` setting
10+
- [#756](https://github.com/estruyf/vscode-front-matter/issues/756): i18n/multilingual content support
911

1012
### 🎨 Enhancements
1113

14+
- [#673](https://github.com/estruyf/vscode-front-matter/pull/673): Added git settings to the welcome view and settings view
1215
- [#727](https://github.com/estruyf/vscode-front-matter/pull/727): Updated Japanese translations thanks to [mayumihara](https://github.com/mayumih387)
1316
- [#737](https://github.com/estruyf/vscode-front-matter/issues/737): Optimize the grid layout of the content and media dashboards
17+
- [#739](https://github.com/estruyf/vscode-front-matter/pull/739): New Git settings to disable and require a commit message
1418
- [#741](https://github.com/estruyf/vscode-front-matter/issues/741): Added message on the content dashboard when content is processed
1519
- [#747](https://github.com/estruyf/vscode-front-matter/issues/747): The `@frontmatter/extensibility` dependency now supports scripts for placeholders
16-
17-
### ⚡️ Optimizations
20+
- [#752](https://github.com/estruyf/vscode-front-matter/issues/752): Placeholder support in default `list` field values
21+
- Support for using the `fieldCollection` field in a `block` field
22+
- Updated the list of commands which are available in the command palette
1823

1924
### 🐞 Fixes
2025

content/changelog/v10.0.0.md

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
---
2+
title: Version 10.0.0 release notes
3+
description: Version 10.0.0 of our CMS introduces the much-awaited feature of multilingual support, enabling you to handle content in various languages, new taxonomy view, media content types, and more.
4+
date: 2024-02-28T10:48:53.569Z
5+
lastmod: 2024-02-28T14:05:58.491Z
6+
slug: v10.0.0
7+
type: changelog
8+
---
9+
10+
## Multilingual/i18n support
11+
12+
Probably the most requested feature is finally here: multilingual support.
13+
You can now define the languages and use the CMS to manage your content in multiple languages.
14+
15+
![Multilingual content](/releases/v10.0.0/multilingual-content.png)
16+
17+
The CMS also integrated its first third-party services to provide automatic translations
18+
for your content. In this release, we added support for [DeepL](https://www.deepl.com)
19+
and [Azure AI Translator](https://azure.microsoft.com/en-us/products/ai-services/ai-translator).
20+
21+
> **Info**: More information can be found in the [multilingual documentation](/docs/content-creation/multilingual).
22+
23+
## New taxonomy view to tag/untag taxonomy to multiple pages
24+
25+
We added a new taxonomy view action that allows you to tag/untag taxonomy to multiple pages at once.
26+
27+
![Tag your taxonomy](/releases/v10.0.0/taxonomy-tagging.webp)
28+
29+
> **Info**: More information can be found in the [taxonomy documentation](/docs/taxonomy-view#tag-content).
30+
31+
## Media Content Types
32+
33+
We had the request where users wanted to add custom metadata to their media files.
34+
In this version, we added support for content types for media files.
35+
36+
```json {{ "title": "Example of defining media content types" }}
37+
{
38+
"frontMatter.media.contentTypes": [{
39+
"name": "default",
40+
"fileTypes": ["png", "jpg", "jpeg", "gif"],
41+
"fields": [{
42+
"title": "Title",
43+
"name": "title",
44+
"type": "string"
45+
},
46+
{
47+
"title": "Author",
48+
"name": "author",
49+
"type": "string"
50+
},
51+
{
52+
"title": "Alt text",
53+
"name": "alt",
54+
"type": "string"
55+
}
56+
]
57+
}]
58+
}
59+
```
60+
61+
> **Info**: More information can be found in the [media content types documentation](/docs/dashboard/media-view#media-content-types).
62+
63+
## Define the content filters
64+
65+
You can now define the content filters that should be available in the CMS.
66+
67+
```json {{ "title": "Example of adding custom filters" }}
68+
{
69+
"frontMatter.content.filters": [
70+
"contentFolders",
71+
"tags",
72+
{
73+
"title": "My custom filter",
74+
"name": "field-name",
75+
}
76+
]
77+
}
78+
```
79+
80+
> **Info**: More information can be found in the [content filters documentation](/docs/dashboard/content-view#filters).
81+
82+
## Related issues/enhancements
83+
84+
### ✨ New features
85+
86+
- [#731](https://github.com/estruyf/vscode-front-matter/issues/731): Added the ability to map/unmap taxonomy to multiple pages at once
87+
- [#746](https://github.com/estruyf/vscode-front-matter/issues/746): Placeholder support added to to the `slug` field
88+
- [#749](https://github.com/estruyf/vscode-front-matter/issues/749): Ability to set your own filters on the content dashboard with the `frontMatter.content.filters` setting
89+
- [#756](https://github.com/estruyf/vscode-front-matter/issues/756): i18n/multilingual content support
90+
91+
### 🎨 Enhancements
92+
93+
- [#673](https://github.com/estruyf/vscode-front-matter/pull/673): Added git settings to the welcome view and settings view
94+
- [#727](https://github.com/estruyf/vscode-front-matter/pull/727): Updated Japanese translations thanks to [mayumihara](https://github.com/mayumih387)
95+
- [#737](https://github.com/estruyf/vscode-front-matter/issues/737): Optimize the grid layout of the content and media dashboards
96+
- [#739](https://github.com/estruyf/vscode-front-matter/pull/739): New Git settings to disable and require a commit message
97+
- [#741](https://github.com/estruyf/vscode-front-matter/issues/741): Added message on the content dashboard when content is processed
98+
- [#747](https://github.com/estruyf/vscode-front-matter/issues/747): The `@frontmatter/extensibility` dependency now supports scripts for placeholders
99+
- [#752](https://github.com/estruyf/vscode-front-matter/issues/752): Placeholder support in default `list` field values
100+
- Support for using the `fieldCollection` field in a `block` field
101+
- Updated the list of commands which are available in the command palette
102+
103+
### 🐞 Fixes
104+
105+
- [#721](https://github.com/estruyf/vscode-front-matter/issues/721): Fix keywords regex to support unicode characters
106+
- [#725](https://github.com/estruyf/vscode-front-matter/issues/725): Fix for opening menu of pinned items
107+
- [#730](https://github.com/estruyf/vscode-front-matter/issues/730): Add debounce to the input fields
108+
- [#738](https://github.com/estruyf/vscode-front-matter/issues/738): Fix when re-opening the preview after closing it
109+
- [#743](https://github.com/estruyf/vscode-front-matter/issues/743): Fix for storing data in YAML data files
110+
- [#745](https://github.com/estruyf/vscode-front-matter/issues/745): Fix for date field values in `block` field type

0 commit comments

Comments
 (0)