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: [
|
|
|
|
'@ligo/syntax', {
|
|
|
|
|
|
|
|
}
|
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: [
|
|
|
|
{ href: 'https://ide.ligolang.org/', label: 'Try Online' },
|
|
|
|
{ to: 'docs/intro/installation', label: 'Install' },
|
2020-03-06 11:30:55 +04:00
|
|
|
{ to: 'docs/intro/introduction', label: 'Docs' },
|
2020-03-04 17:19:00 +04:00
|
|
|
{
|
|
|
|
to: 'docs/tutorials/get-started/tezos-taco-shop-smart-contract',
|
|
|
|
label: 'Tutorials'
|
|
|
|
},
|
|
|
|
{ href: 'https://forum.tezosagora.org/tag/ligo', label: 'Blog' },
|
|
|
|
// TODO: { href: "/odoc", label: "API" },
|
|
|
|
// { doc: 'contributors/origin', label: 'Contribute' },
|
|
|
|
{ to: '/contact', label: 'Ask Questions' }
|
|
|
|
],
|
|
|
|
},
|
|
|
|
footer: {
|
|
|
|
links: [
|
|
|
|
{
|
|
|
|
title: 'Docs',
|
|
|
|
items: [
|
|
|
|
{ to: 'docs/intro/installation', label: 'Install' },
|
|
|
|
{ to: 'docs/api/cli-commands', label: 'CLI Commands' },
|
|
|
|
{ to: 'docs/contributors/origin', label: 'Contribute' },
|
|
|
|
{ to: '/odoc', label: 'API Documentation' }
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Community',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
href: 'https://forum.tezosagora.org/tag/ligo',
|
|
|
|
label: 'Tezos Agora Forum'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
href: 'https://tezos.stackexchange.com/questions/tagged/ligo',
|
|
|
|
label: 'Tezos Stack Exchange'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
href: 'https://t.me/LigoLang',
|
|
|
|
label: 'Telegram'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
href: 'https://discord.gg/9rhYaEt',
|
|
|
|
label: 'Discord'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'More',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: 'Tutorials',
|
|
|
|
to: 'docs/tutorials/get-started/tezos-taco-shop-smart-contract'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'GitLab',
|
|
|
|
href: repoUrl
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
// { 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;
|