mirror of
https://github.com/fmhy/edit.git
synced 2025-07-31 00:02:17 +10:00
Remove mentions of deprecated paths & files
This commit is contained in:
parent
6a916a0592
commit
481fc20e42
10 changed files with 14 additions and 19 deletions
|
@ -22,7 +22,7 @@ import { transforms } from './transformer'
|
|||
|
||||
// @unocss-include
|
||||
|
||||
const baseUrl = process.env.GITHUB_ACTIONS ? '/FMHYedit' : '/'
|
||||
const baseUrl = process.env.GITHUB_ACTIONS ? '/edit' : '/'
|
||||
export default defineConfig({
|
||||
title: 'FMHY',
|
||||
description: meta.description,
|
||||
|
@ -155,7 +155,7 @@ export default defineConfig({
|
|||
copyright: `© ${new Date().getFullYear()}, Estd 2018`
|
||||
},
|
||||
editLink: {
|
||||
pattern: 'https://github.com/fmhy/FMHYEdit/edit/main/docs/:path',
|
||||
pattern: 'https://github.com/fmhy/edit/edit/main/docs/:path',
|
||||
text: '📝 Edit this page'
|
||||
},
|
||||
outline: 'deep',
|
||||
|
|
|
@ -28,7 +28,7 @@ export const meta = {
|
|||
|
||||
export const commitRef =
|
||||
process.env.CF_PAGES && process.env.CF_PAGES_COMMIT_SHA
|
||||
? `<a href="https://github.com/fmhy/FMHYEdit/commit/${process.env.CF_PAGES_COMMIT_SHA
|
||||
? `<a href="https://github.com/fmhy/edit/commit/${process.env.CF_PAGES_COMMIT_SHA
|
||||
}">${process.env.CF_PAGES_COMMIT_SHA.slice(0, 8)}</a>`
|
||||
: 'dev'
|
||||
|
||||
|
@ -110,7 +110,7 @@ export const search: DefaultTheme.Config['search'] = {
|
|||
}
|
||||
|
||||
export const socialLinks: DefaultTheme.SocialLink[] = [
|
||||
{ icon: 'github', link: 'https://github.com/fmhy/FMHYEdit' },
|
||||
{ icon: 'github', link: 'https://github.com/fmhy/edit' },
|
||||
{ icon: 'discord', link: 'https://rentry.co/fmhy-invite' },
|
||||
{
|
||||
ariaLabel: 'Reddit',
|
||||
|
|
|
@ -214,10 +214,6 @@ export function transform(text: string): string {
|
|||
/https:\/\/www.reddit.com\/r\/FREEMEDIAHECKYEAH\/wiki\/img-tools/g,
|
||||
'/img-tools'
|
||||
)
|
||||
.replace(
|
||||
/https:\/\/github.com\/nbats\/FMHYedit\/blob\/main\/base64.md#/g,
|
||||
'/base64/#'
|
||||
)
|
||||
// Remove extra characters
|
||||
.replace(/\/#wiki_/g, '/#')
|
||||
.replace(/#wiki_/g, '/#')
|
||||
|
@ -250,7 +246,6 @@ export function transform(text: string): string {
|
|||
/\/storage\/#encode--decode_urls/g,
|
||||
'/storage/#encode--decode-urls'
|
||||
)
|
||||
.replace(/\/base64\/#do-k-ument/g, '/base64/#do_k_ument')
|
||||
.replace(/\/devtools\/#machine-learning2/g, '/devtools/#machine-learning-1')
|
||||
.replace(/\/linuxguide#software-sites2/g, '/linuxguide#software-sites-1')
|
||||
.replace(/\/linuxguide#software_sites/g, '/linuxguide#software-sites')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue