Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dapeng committed May 13, 2024
1 parent 44af47b commit 3616bc9
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 47 deletions.
1 change: 1 addition & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ yarn build && \
git checkout gh-pages && \
rm -rf assets en zh 404.html && \
cp -R docs/.vuepress/dist/* ./ && \
scp -r docs/.vuepress/dist/* z:/opt/goner.fun/www && \
git add . && \
git commit -am update && \
git push origin gh-pages && \
Expand Down
81 changes: 51 additions & 30 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
module.exports = {
head: [
['link', { rel: 'icon', href: `/assets/img/logo.png` }],
[
'script',
{
type: 'text/javascript',
},
`
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?ed9e5a48d8eeb5e6b55a0de9cb8f6486";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
if(location.pathname == '/'){
location.pathname='/zh/'
}
`
],
],

locales: {
Expand All @@ -10,7 +29,7 @@ module.exports = {
description: '做一个对Spring程序员最友好的Golang框架',
},

// '/en/': {
// '/': {
// lang: 'en-US',
// title: 'Gone Document',
// description: 'Build the Golang framework which is most friendly to Spring programmers'
Expand All @@ -24,6 +43,37 @@ module.exports = {
logo: '/assets/img/logo.png',

locales: {
'/': {
label: 'English',
selectText: 'Languages',
editLinkText: 'Edit this page on GitHub',


// nav: [
// {
// text: 'Guide',
// link: '/guide/'
// },
// {
// text: 'Quick Start',
// link: '/quick-start/'
// },
// {
// text: 'API Reference',
// link: '/api/'
// },
// {
// text: 'Gone Story',
// link: '/story/'
// },
// ],

// sidebar: [
// ['/en/', 'Introduction'],
// '/en/quick-start/',
// '/en/guide/',
// ],
},
'/zh/': {
label: '简体中文',
selectText: '选择语言',
Expand Down Expand Up @@ -95,36 +145,7 @@ module.exports = {
],
},

'/en/': {
label: 'English',
selectText: 'Languages',
editLinkText: 'Edit this page on GitHub',

nav: [
{
text: 'Guide',
link: '/en/guide/'
},
{
text: 'Quick Start',
link: '/en/quick-start/'
},
{
text: 'API Reference',
link: '/en/api/'
},
{
text: 'Gone Story',
link: '/en/story/'
},
],

sidebar: [
['/en/', 'Introduction'],
'/en/quick-start/',
'/en/guide/',
],
},
},
},

Expand Down
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Introduction
Empty file removed docs/en/README.md
Empty file.
8 changes: 0 additions & 8 deletions docs/en/api/README.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/en/guide/README.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/en/quick-start/README.md

This file was deleted.

7 changes: 0 additions & 7 deletions docs/en/story/README.md

This file was deleted.

0 comments on commit 3616bc9

Please sign in to comment.