Skip to content

Commit 12d77e3

Browse files
authored
Merge pull request #3747 from NginxProxyManager/develop
Docs migration from vuepress to vitepress
2 parents 256a667 + 8d80af3 commit 12d77e3

39 files changed

+1101
-4710
lines changed

Jenkinsfile

+3-20
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,6 @@ pipeline {
9292
sh 'yarn install'
9393
sh 'yarn build'
9494
}
95-
dir(path: 'docs/.vuepress/dist') {
96-
sh 'tar -czf ../../docs.tgz *'
97-
}
98-
archiveArtifacts(artifacts: 'docs/docs.tgz', allowEmptyArchive: false)
9995
}
10096
}
10197
stage('Cypress') {
@@ -185,30 +181,17 @@ pipeline {
185181
}
186182
stage('Docs / Comment') {
187183
parallel {
188-
stage('Master Docs') {
189-
when {
190-
allOf {
191-
branch 'master'
192-
not {
193-
equals expected: 'UNSTABLE', actual: currentBuild.result
194-
}
195-
}
196-
}
197-
steps {
198-
npmDocsReleaseMaster()
199-
}
200-
}
201-
stage('Develop Docs') {
184+
stage('Docs Job') {
202185
when {
203186
allOf {
204-
branch 'develop'
187+
branch pattern: "^(develop|master)\$", comparator: "REGEXP"
205188
not {
206189
equals expected: 'UNSTABLE', actual: currentBuild.result
207190
}
208191
}
209192
}
210193
steps {
211-
npmDocsReleaseDevelop()
194+
build wait: false, job: 'nginx-proxy-manager-docs', parameters: [string(name: 'docs_branch', value: "$BRANCH_NAME")]
212195
}
213196
}
214197
stage('PR Comment') {

docs/.gitignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
.vuepress/dist
1+
dist
22
node_modules
33
ts
44
.temp
55
.cache
6+
.vitepress/cache
67

78
.yarn/*
89
!.yarn/releases
910
!.yarn/plugins
1011
!.yarn/sdks
1112
!.yarn/versions
1213
*.gz
13-
*.tgz
14+
*.tgz

docs/.vitepress/config.mts

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
import { defineConfig, type DefaultTheme } from 'vitepress';
2+
3+
// https://vitepress.dev/reference/site-config
4+
export default defineConfig({
5+
title: "Nginx Proxy Manager",
6+
description: "Expose your services easily and securely",
7+
head: [
8+
["link", { rel: "icon", href: "/icon.png" }],
9+
["meta", { name: "description", content: "Docker container and built in Web Application for managing Nginx proxy hosts with a simple, powerful interface, providing free SSL support via Let's Encrypt" }],
10+
["meta", { property: "og:title", content: "Nginx Proxy Manager" }],
11+
["meta", { property: "og:description", content: "Docker container and built in Web Application for managing Nginx proxy hosts with a simple, powerful interface, providing free SSL support via Let's Encrypt"}],
12+
["meta", { property: "og:type", content: "website" }],
13+
["meta", { property: "og:url", content: "https://nginxproxymanager.com/" }],
14+
["meta", { property: "og:image", content: "https://nginxproxymanager.com/icon.png" }],
15+
["meta", { name: "twitter:card", content: "summary"}],
16+
["meta", { name: "twitter:title", content: "Nginx Proxy Manager"}],
17+
["meta", { name: "twitter:description", content: "Docker container and built in Web Application for managing Nginx proxy hosts with a simple, powerful interface, providing free SSL support via Let's Encrypt"}],
18+
["meta", { name: "twitter:image", content: "https://nginxproxymanager.com/icon.png"}],
19+
["meta", { name: "twitter:alt", content: "Nginx Proxy Manager"}],
20+
// GA
21+
['script', { async: 'true', src: 'https://www.googletagmanager.com/gtag/js?id=G-TXT8F5WY5B'}],
22+
['script', {}, "window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-TXT8F5WY5B');"],
23+
],
24+
sitemap: {
25+
hostname: 'https://nginxproxymanager.com'
26+
},
27+
metaChunk: true,
28+
srcDir: './src',
29+
outDir: './dist',
30+
themeConfig: {
31+
// https://vitepress.dev/reference/default-theme-config
32+
logo: { src: '/logo.svg', width: 24, height: 24 },
33+
nav: [
34+
{ text: 'Setup', link: '/setup/' },
35+
],
36+
sidebar: [
37+
{
38+
items: [
39+
// { text: 'Home', link: '/' },
40+
{ text: 'Guide', link: '/guide/' },
41+
{ text: 'Screenshots', link: '/screenshots/' },
42+
{ text: 'Setup Instructions', link: '/setup/' },
43+
{ text: 'Advanced Configuration', link: '/advanced-config/' },
44+
{ text: 'Upgrading', link: '/upgrading/' },
45+
{ text: 'Frequently Asked Questions', link: '/faq/' },
46+
{ text: 'Third Party', link: '/third-party/' },
47+
]
48+
}
49+
],
50+
socialLinks: [
51+
{ icon: 'github', link: 'https://github.com/NginxProxyManager/nginx-proxy-manager' }
52+
],
53+
search: {
54+
provider: 'local'
55+
},
56+
footer: {
57+
message: 'Released under the MIT License.',
58+
copyright: 'Copyright © 2016-present jc21.com'
59+
}
60+
}
61+
});

docs/.vitepress/theme/custom.css

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
:root {
2+
--vp-home-hero-name-color: transparent;
3+
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #f15833 30%, #FAA42F);
4+
5+
--vp-home-hero-image-background-image: linear-gradient(-45deg, #aaaaaa 50%, #777777 50%);
6+
--vp-home-hero-image-filter: blur(44px);
7+
8+
--vp-c-brand-1: #f15833;
9+
--vp-c-brand-2: #FAA42F;
10+
--vp-c-brand-3: #f15833;
11+
}
12+
13+
@media (min-width: 640px) {
14+
:root {
15+
--vp-home-hero-image-filter: blur(56px);
16+
}
17+
}
18+
19+
@media (min-width: 960px) {
20+
:root {
21+
--vp-home-hero-image-filter: blur(68px);
22+
}
23+
}
24+
25+
.inline-img img {
26+
display: inline;
27+
}

docs/.vitepress/theme/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import DefaultTheme from 'vitepress/theme'
2+
import './custom.css'
3+
4+
export default DefaultTheme

docs/.vuepress/config.js

-120
This file was deleted.

docs/.vuepress/public/logo.png

-56.7 KB
Binary file not shown.

docs/.vuepress/public/nerd-font.woff2

-369 KB
Binary file not shown.

0 commit comments

Comments
 (0)