2020-03-04 17:19:00 +04:00
|
|
|
|
|
|
|
const repoUrl = 'https://gitlab.com/ligolang/ligo';
|
|
|
|
|
|
|
|
// let reasonHighlightJs = require('reason-highlightjs');
|
|
|
|
|
|
|
|
const siteConfig = {
|
|
|
|
title: 'LIGO', // Title for your website.
|
|
|
|
tagline: 'LIGO is a friendly smart contract language for Tezos',
|
|
|
|
// taglineSub: 'Michelson was never so easy',
|
|
|
|
url: 'https://ligolang.org', // Your website URL
|
|
|
|
baseUrl: '/', // Base URL for your project */
|
|
|
|
// For github.io type URLs, you would set the url and baseUrl like:
|
|
|
|
// url: 'https://facebook.github.io',
|
|
|
|
// baseUrl: '/test-site/',
|
|
|
|
|
|
|
|
// Used for publishing and more
|
|
|
|
projectName: 'ligo',
|
|
|
|
organizationName: 'TBN',
|
|
|
|
// For top-level user or org sites, the organization is still the same.
|
|
|
|
// e.g., for the https://JoelMarcey.github.io site, it would be set like...
|
|
|
|
// organizationName: 'JoelMarcey'
|
|
|
|
|
|
|
|
// For no header links in the top nav bar -> headerLinks: [],
|
|
|
|
|
|
|
|
|
|
|
|
// footerLinks: {
|
|
|
|
// docs: [
|
|
|
|
// { doc: 'intro/installation', label: 'Install' },
|
|
|
|
// { doc: 'api/cli-commands', label: 'CLI Commands' },
|
|
|
|
// { doc: 'contributors/origin', label: 'Contribute' },
|
|
|
|
// { href: '/odoc', label: 'API Documentation' }
|
|
|
|
// ],
|
|
|
|
// community: [
|
|
|
|
// {
|
|
|
|
// href: 'https://forum.tezosagora.org/tag/ligo',
|
|
|
|
// label: 'Tezos Agora Forum',
|
|
|
|
// blankTarget: true
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// href: 'https://tezos.stackexchange.com/questions/tagged/ligo',
|
|
|
|
// label: 'Tezos Stack Exchange',
|
|
|
|
// blankTarget: true
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// href: 'https://t.me/LigoLang',
|
|
|
|
// label: 'Telegram',
|
|
|
|
// blankTarget: true
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// href: 'https://discord.gg/9rhYaEt',
|
|
|
|
// label: 'Discord',
|
|
|
|
// blankTarget: true
|
|
|
|
// }
|
|
|
|
// ],
|
|
|
|
// more: [
|
|
|
|
// {
|
|
|
|
// doc: 'tutorials/get-started/tezos-taco-shop-smart-contract',
|
|
|
|
// label: 'Tutorials'
|
|
|
|
// },
|
|
|
|
// { href: repoUrl, label: 'GitLab' }
|
|
|
|
// ]
|
|
|
|
// },
|
|
|
|
|
|
|
|
favicon: 'img/circle.svg',
|
|
|
|
|
|
|
|
/* highlight: {
|
|
|
|
// Highlight.js theme to use for syntax highlighting in code blocks.
|
|
|
|
theme: 'default',
|
|
|
|
hljs: function (hljs) {
|
|
|
|
hljs.registerLanguage('reasonligo', reasonHighlightJs);
|
|
|
|
hljs.registerLanguage('pascaligo', function (hljs) {
|
|
|
|
return {
|
|
|
|
// case_insensitive: true,
|
|
|
|
beginKeywords: '',
|
|
|
|
keywords: {
|
|
|
|
keyword:
|
|
|
|
'and attributes begin big_map block case const contains else'
|
|
|
|
+ ' end False for from function if in is list map mod nil'
|
|
|
|
+ ' not of or patch record remove set skip then to True type'
|
|
|
|
+ ' var while with',
|
|
|
|
literal: 'true false unit int string Some None bool nat list'
|
|
|
|
},
|
|
|
|
lexemes: '[a-zA-Z][a-zA-Z0-9_]*',
|
|
|
|
contains: [
|
|
|
|
hljs.C_LINE_COMMENT_MODE,
|
|
|
|
|
|
|
|
{
|
|
|
|
className: 'type',
|
|
|
|
begin: /[A-Z][a-z]+/
|
|
|
|
},
|
|
|
|
{
|
|
|
|
begin: /[*+-:;\(\)\{\}|\>\<]/
|
|
|
|
// className: 'ignore'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|
|
|
|
},*/
|
|
|
|
|
|
|
|
// Add custom scripts here that would be placed in <script> tags.
|
|
|
|
|
|
|
|
// On page navigation for the current documentation page.
|
|
|
|
// No .html extensions for paths.
|
|
|
|
|
|
|
|
// Show documentation's last contributor's name.
|
|
|
|
// enableUpdateBy: true,
|
|
|
|
|
|
|
|
// Show documentation's last update time.
|
|
|
|
// enableUpdateTime: true,
|
|
|
|
|
|
|
|
// You may provide arbitrary config keys to be used as needed by your
|
|
|
|
// template. For example, if you need your repo's URL...
|
|
|
|
// repoUrl: repoUrl,
|
2020-03-09 21:19:31 +04:00
|
|
|
plugins: [
|
2020-05-05 06:35:03 +04:00
|
|
|
require.resolve('@ligo/syntax', {
|
2020-03-09 21:19:31 +04:00
|
|
|
|
2020-04-06 13:53:21 +04:00
|
|
|
},
|
|
|
|
'@docusaurus/plugin-sitemap', {
|
|
|
|
cacheTime: 600 * 1000, // 600 sec - cache purge period
|
|
|
|
changefreq: 'weekly',
|
|
|
|
priority: 0.5,
|
2020-05-05 06:35:03 +04:00
|
|
|
})
|
2020-03-04 17:19:00 +04:00
|
|
|
],
|
|
|
|
|
|
|
|
presets: [
|
|
|
|
[
|
|
|
|
'@docusaurus/preset-classic',
|
|
|
|
{
|
|
|
|
docs: {
|
|
|
|
// docs folder path relative to website dir.
|
|
|
|
path: '../docs',
|
|
|
|
// sidebars file relative to website dir.
|
|
|
|
sidebarPath: require.resolve('./sidebars.json'),
|
|
|
|
},
|
|
|
|
theme: {
|
|
|
|
customCss: require.resolve('./static/css/custom.css'),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
themeConfig: {
|
|
|
|
googleAnalytics: {
|
|
|
|
trackingID: 'UA-153751765-1',
|
|
|
|
gtag: true
|
|
|
|
},
|
|
|
|
algolia: {
|
|
|
|
apiKey: '12be98d9fd4242a5f16b70a5cc6b0158',
|
|
|
|
indexName: 'ligolang',
|
|
|
|
algoliaOptions: {} // Optional, if provided by Algolia
|
|
|
|
},
|
|
|
|
navbar: {
|
|
|
|
logo: {
|
|
|
|
alt: 'LIGO Logo',
|
|
|
|
src: 'img/logo.svg',
|
|
|
|
srcDark: 'img/logo-night.svg'
|
|
|
|
},
|
|
|
|
links: [
|
2020-05-05 06:35:03 +04:00
|
|
|
{ href: 'https://ide.ligolang.org/', label: 'Try Online', position: 'left', target: '_self' },
|
|
|
|
{ to: 'docs/intro/installation', label: 'Install', position: 'left' },
|
|
|
|
{ to: 'docs/intro/introduction', label: 'Docs', position: 'left' },
|
2020-03-04 17:19:00 +04:00
|
|
|
{
|
|
|
|
to: 'docs/tutorials/get-started/tezos-taco-shop-smart-contract',
|
2020-05-05 06:35:03 +04:00
|
|
|
label: 'Tutorials',
|
|
|
|
position: 'left'
|
2020-03-04 17:19:00 +04:00
|
|
|
},
|
2020-05-05 06:35:03 +04:00
|
|
|
{ href: 'https://forum.tezosagora.org/tag/ligo', label: 'Blog', position: 'left' },
|
2020-03-04 17:19:00 +04:00
|
|
|
// TODO: { href: "/odoc", label: "API" },
|
|
|
|
// { doc: 'contributors/origin', label: 'Contribute' },
|
2020-05-05 06:35:03 +04:00
|
|
|
{ to: '/contact', label: 'Ask Questions', position: 'left' }
|
2020-03-04 17:19:00 +04:00
|
|
|
],
|
|
|
|
},
|
|
|
|
footer: {
|
|
|
|
links: [
|
|
|
|
{
|
|
|
|
title: 'Docs',
|
|
|
|
items: [
|
|
|
|
{ to: 'docs/intro/installation', label: 'Install' },
|
|
|
|
{ to: 'docs/api/cli-commands', label: 'CLI Commands' },
|
2020-05-05 06:35:03 +04:00
|
|
|
{ to: 'docs/api/cheat-sheet', label: 'Cheat Sheet' },
|
|
|
|
{ href: 'https://ligolang.org/odoc/', label: 'API Documentation' }
|
2020-03-04 17:19:00 +04:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Community',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
href: 'https://tezos.stackexchange.com/questions/tagged/ligo',
|
|
|
|
label: 'Tezos Stack Exchange'
|
|
|
|
},
|
2020-05-05 06:35:03 +04:00
|
|
|
{
|
|
|
|
href: 'https://discord.gg/9rhYaEt',
|
|
|
|
label: 'Discord'
|
|
|
|
},
|
2020-03-04 17:19:00 +04:00
|
|
|
{
|
|
|
|
href: 'https://t.me/LigoLang',
|
|
|
|
label: 'Telegram'
|
|
|
|
},
|
|
|
|
{
|
2020-05-05 06:35:03 +04:00
|
|
|
href: 'https://riot.im/app/#/room/#ligo-public:matrix.org',
|
|
|
|
label: 'Riot'
|
2020-03-04 17:19:00 +04:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'More',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: 'Tutorials',
|
|
|
|
to: 'docs/tutorials/get-started/tezos-taco-shop-smart-contract'
|
|
|
|
},
|
2020-05-05 06:35:03 +04:00
|
|
|
{
|
|
|
|
href: 'https://forum.tezosagora.org/tag/ligo',
|
|
|
|
label: 'Blog'
|
|
|
|
},
|
2020-03-04 17:19:00 +04:00
|
|
|
{
|
|
|
|
label: 'GitLab',
|
|
|
|
href: repoUrl
|
2020-05-05 06:35:03 +04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Contribute',
|
|
|
|
to: 'docs/contributors/origin'
|
2020-03-04 17:19:00 +04:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
// { href: 'https://ide.ligolang.org/', title: 'Try Online' }
|
|
|
|
],
|
|
|
|
copyright: `© ${new Date().getFullYear()} LIGO. All rights reserved.`,
|
|
|
|
},
|
|
|
|
image: 'img/docusaurus.png',
|
|
|
|
sidebarCollapsible: true,
|
|
|
|
prism: {
|
|
|
|
theme: require('prism-react-renderer/themes/github'),
|
|
|
|
darkTheme: require('prism-react-renderer/themes/vsDark')
|
|
|
|
},
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = siteConfig;
|