forked from AlmaLinux/wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
138 changed files
with
19,545 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules | ||
yarn.lock | ||
pnpm-lock.yaml |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import { defineConfig } from 'vuepress/config' | ||
|
||
import * as zhConfig from './config/zh' | ||
import * as enConfig from './config/en' | ||
|
||
export default defineConfig(({ | ||
title: 'AlmaLinux Wiki', | ||
description: 'AlmaLinux OS Documentation', | ||
head: [ ['script', {}, ` | ||
var _paq = window._paq = window._paq || []; | ||
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */ | ||
_paq.push(['trackPageView']); | ||
_paq.push(['enableLinkTracking']); | ||
(function() { | ||
var u="https://matomo.almalinux.org/"; | ||
_paq.push(['setTrackerUrl', u+'matomo.php']); | ||
_paq.push(['setSiteId', '5']); | ||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; | ||
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); | ||
})(); | ||
`], | ||
['link', { rel: "shortcut icon", type: 'image/png', href: "/images/logo.png"}], | ||
], | ||
locales: { | ||
'/': { | ||
lang: 'en', | ||
title: 'AlmaLinux Wiki', | ||
description: 'AlmaLinux OS Documentation', | ||
}, | ||
'/zh/': { | ||
lang: 'zh', | ||
title: 'AlmaLinux Wiki', | ||
description: 'AlmaLinux OS 文档', | ||
} | ||
}, | ||
themeConfig: { | ||
logo: '/images/logo.png', | ||
locales: { | ||
'/': { | ||
label: 'English', | ||
selectText: 'Languages', | ||
ariaLabel: 'Select language', | ||
editLinkText: 'Edit this page on GitHub', | ||
lastUpdated: 'Last Updated', | ||
nav: enConfig.navbar, | ||
sidebar: enConfig.sidebar | ||
}, | ||
'/zh/': { | ||
label: '简体中文', | ||
selectText: '选择语言', | ||
ariaLabel: '选择语言', | ||
editLinkText: '在 GitHub 上编辑此页', | ||
lastUpdated: '上次更新', | ||
nav: zhConfig.navbar, | ||
sidebar: zhConfig.sidebar | ||
} | ||
}, | ||
// AlmaLinux organization on GitHub | ||
repo: 'AlmaLinux/', | ||
// wiki repository settings | ||
docsRepo: 'AlmaLinux/wiki', | ||
docsDir: 'docs', | ||
docsBranch: 'master', | ||
// editing works only for users with the repository write-access so we | ||
// disabled it to avoid confusion | ||
editLinks: false | ||
}, | ||
})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './navbar' | ||
export * from './sidebar' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export const navbar = [ | ||
{ text: 'Home', link: 'https://almalinux.org/' }, | ||
{ text: 'Chat', link: 'https://chat.almalinux.org/' }, | ||
{ text: 'Mailing Lists', link: 'https://lists.almalinux.org/' }, | ||
{ text: 'Bugs', link: 'https://bugs.almalinux.org/' } | ||
] |
Oops, something went wrong.