-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathconfig.js
More file actions
64 lines (61 loc) · 1.61 KB
/
Copy pathconfig.js
File metadata and controls
64 lines (61 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import baseConfig from '@cakephp/docs-skeleton/config'
import { createRequire } from 'module'
const require = createRequire(import.meta.url)
const tocEn = require('./toc_en.json')
const tocJa = require('./toc_ja.json')
const versions = {
text: '5.x',
items: [
{ text: '5.x (current)', link: 'https://book.cakephp.org/elasticsearch/5/', target: '_self' },
{ text: '4.x', link: 'https://book.cakephp.org/elasticsearch/4/', target: '_self' },
{ text: '3.x', link: 'https://book.cakephp.org/elasticsearch/3/', target: '_self' },
],
}
export default {
extends: baseConfig,
srcDir: '.',
title: 'ElasticSearch',
description: 'CakePHP ElasticSearch Documentation',
base: '/elasticsearch/5/',
rewrites: {
'en/:slug*': ':slug*',
'ja/:slug*': 'ja/:slug*',
},
sitemap: {
hostname: 'https://book.cakephp.org/elasticsearch/5/',
},
themeConfig: {
siteTitle: false,
pluginName: 'ElasticSearch',
socialLinks: [
{ icon: 'github', link: 'https://github.com/cakephp/elastic-search' },
],
editLink: {
pattern: 'https://github.com/cakephp/elastic-search/edit/5.x/docs/:path',
text: 'Edit this page on GitHub',
},
sidebar: tocEn,
nav: [
{ text: 'CakePHP', link: 'https://cakephp.org' },
{ text: 'API', link: 'https://api.cakephp.org/elasticsearch/' },
{ ...versions },
],
},
locales: {
root: {
label: 'English',
lang: 'en',
themeConfig: {
sidebar: tocEn,
},
},
ja: {
label: 'Japanese',
lang: 'ja',
link: '/ja/',
themeConfig: {
sidebar: tocJa,
},
},
},
}