Skip to content

Commit 1ec8345

Browse files
committed
Merge branch 'master' into release
2 parents 774fd8c + 8909822 commit 1ec8345

29 files changed

+312
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ jobs:
4747
uses: actions/configure-pages@v4
4848
- name: Install dependencies
4949
run: npm ci # or pnpm install / yarn install / bun install
50+
- name: Set github env params to env file
51+
uses: c-py/action-dotenv-to-setenv@v5
52+
with:
53+
env-file: .env
5054
- name: Build with VitePress
5155
run: npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
5256
- name: Upload artifact

docs/.vitepress/config.ts

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,39 @@
1-
import { defineConfig } from 'vitepress';
21
import dotenv from 'dotenv';
3-
2+
import { defineConfig, HeadConfig } from 'vitepress'
43
//const dotenv = require('dotenv');
54

65
dotenv.config();
76

7+
const base_url = process.env.VITEPRESS_BASE_URL || 'https://github.com/codeboxrcodehub/comforthrmdocs';
8+
89
export default {
10+
sitemap: {
11+
hostname: base_url
12+
},
13+
transformHead: ({ pageData }) => {
14+
const head: HeadConfig[] = [];
15+
16+
head.push(['meta', { property: 'keywords', content: pageData.frontmatter.keywords }]);
17+
18+
19+
head.push(['meta', { property: 'og:site_name', content: pageData.frontmatter.site_name }]);
20+
head.push(['meta', { property: 'og:title', content: pageData.frontmatter.title }]);
21+
head.push(['meta', { property: 'og:description', content: pageData.frontmatter.description }]);
22+
head.push(['meta', { property: 'og:keywords', content: pageData.frontmatter.keywords }]);
23+
head.push(['meta', { property: 'og:type', content: pageData.frontmatter.type }]);
24+
head.push(['meta', { property: 'og:url', content: base_url + pageData.frontmatter.url }]);
25+
head.push(['meta', { property: 'og:image', content: pageData.frontmatter.image }]);
26+
27+
head.push(['meta', { property: 'twitter:site', content: pageData.frontmatter.site_name }]);
28+
head.push(['meta', { property: 'twitter:title', content: pageData.frontmatter.title }]);
29+
head.push(['meta', { property: 'twitter:description', content: pageData.frontmatter.description }]);
30+
head.push(['meta', { property: 'twitter:keywords', content: pageData.frontmatter.keywords }]);
31+
head.push(['meta', { property: 'twitter:card', content: pageData.frontmatter.type }]);
32+
head.push(['meta', { property: 'twitter:url', content: base_url + pageData.frontmatter.url }]);
33+
head.push(['meta', { property: 'twitter:image', content: pageData.frontmatter.image }]);
34+
35+
return head
36+
},
937
title: "Comfort HRM",
1038
description: "An awesome docs template built by me",
1139
lang: 'en-US',

docs/comfortjob/classic-widgets.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
---
2+
title: "Comfort Job Documentation"
3+
description: "Comfort Job index description."
4+
keywords: "Comfort Job index keywords."
5+
url: "/comfortjob/classic-widgets"
6+
type: "article"
7+
site_name: "Comfort HRM"
8+
image: "https://comforthrm.com/assets/images/seo.png"
9+
card: "article"
10+
---
111
# Classic Widgets
212

313
WordPress currently doesn’t support classic widgets but still you can enable it by using this plugin [“Classic Widgets”](https://wordpress.org/plugins/classic-widgets/)

docs/comfortjob/code-samples.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
---
2+
title: "Comfort Job Documentation"
3+
description: "Comfort Job index description."
4+
keywords: "Comfort Job index keywords."
5+
url: "/comfortjob/code-samples"
6+
type: "type"
7+
site_name: "Comfort HRM"
8+
image: "https://comforthrm.com/assets/images/seo.png"
9+
card: "article"
10+
---
111
# Code Samples
212

313

docs/comfortjob/elementor-widgets.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
---
2+
title: "Comfort Job Documentation"
3+
description: "Comfort Job index description."
4+
keywords: "Comfort Job index keywords."
5+
url: "/comfortjob/elementor-widgets"
6+
type: "type"
7+
site_name: "Comfort HRM"
8+
image: "https://comforthrm.com/assets/images/seo.png"
9+
card: "article"
10+
---
111
# Elementor Widgets
212

313

docs/comfortjob/gutenberg-blocks.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
---
2+
title: "Comfort Job Documentation"
3+
description: "Comfort Job index description."
4+
keywords: "Comfort Job index keywords."
5+
url: "/comfortjob/gutenberg-blocks"
6+
type: "type"
7+
site_name: "Comfort HRM"
8+
image: "https://comforthrm.com/assets/images/seo.png"
9+
card: "article"
10+
---
111
# Gutenberg Blocks
212

313

docs/comfortjob/hooks-and-filters.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
---
2+
title: "Comfort Job Documentation"
3+
description: "Comfort Job index description."
4+
keywords: "Comfort Job index keywords."
5+
url: "/comfortjob/hooks-and-filters"
6+
type: "type"
7+
site_name: "Comfort HRM"
8+
image: "https://comforthrm.com/assets/images/seo.png"
9+
card: "article"
10+
---
111
# Hooks and Filters
212

313

docs/comfortjob/how-to-install.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
---
2+
title: "Comfort Job Documentation"
3+
description: "Comfort Job index description."
4+
keywords: "Comfort Job index keywords."
5+
url: "/comfortjob/how-to-install"
6+
type: "type"
7+
site_name: "Comfort HRM"
8+
image: "https://comforthrm.com/assets/images/seo.png"
9+
card: "article"
10+
---
111
# How to Install
212

313
The core plugin name is **“Comfort Job”** and our pro addon name is **“Comfort Job Pro Addon”**.

docs/comfortjob/how-to-translate.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
---
2+
title: "Comfort Job Documentation"
3+
description: "Comfort Job index description."
4+
keywords: "Comfort Job index keywords."
5+
url: "/comfortjob/how-to-translate"
6+
type: "type"
7+
site_name: "Comfort HRM"
8+
image: "https://comforthrm.com/assets/images/seo.png"
9+
card: "article"
10+
---
111
# How to Translate
212

313
We are not providing any translation (if we add we will mention in future) with the plugin, but we provide the translation template or pot file inside this plugin’s languages folder which can be translated using standard wordpress translation process. But we recommend using [Loco translate](https://wordpress.org/plugins/loco-translate/) which helps to translate from the WordPress dashboard and very easy. We have a video tutorial about [how to use this](https://www.youtube.com/watch?v=yOkEzvjx6PM) loco translate plugin.

docs/comfortjob/index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
---
2+
title: "Comfort Job Documentation"
3+
description: "Comfort Job index description."
4+
keywords: "Comfort Job index keywords."
5+
url: "/comfortjob/"
6+
type: "type"
7+
site_name: "Comfort HRM"
8+
image: "https://comforthrm.com/assets/images/seo.png"
9+
card: "article"
10+
11+
---
12+
113
# Comfort Job Documentation
214

315
Welcome to the Comfort Job main page.

0 commit comments

Comments
 (0)