Skip to content

Commit

Permalink
Major update for Difys Alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
Zirpoo committed Mar 30, 2020
1 parent 47760b9 commit f665419
Show file tree
Hide file tree
Showing 7 changed files with 1,578 additions and 1,466 deletions.
18 changes: 2 additions & 16 deletions website/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"sidebar_label": "Our Partners"
},
"introduction/plugins": {
"title": "Plugins - Basic",
"sidebar_label": "Plugins - Basic"
"title": "Plugins",
"sidebar_label": "Plugins"
},
"introduction/quick-start": {
"title": "Quick Start",
Expand All @@ -52,18 +52,6 @@
"title": "Game socket",
"sidebar_label": "Game socket"
},
"plugins/plugins-advanced": {
"title": "Plugins - Advanced",
"sidebar_label": "Plugins - Advanced"
},
"plugins/redux-plugins": {
"title": "Redux & Plugins",
"sidebar_label": "Redux & Plugins"
},
"plugins/tips": {
"title": "Tips and tricks",
"sidebar_label": "Tips and tricks"
},
"scripting/scripting-api": {
"title": "Scripting API",
"sidebar_label": "Scripting API"
Expand All @@ -79,12 +67,10 @@
},
"links": {
"Quick Start": "Quick Start",
"Advanced Plugins": "Advanced Plugins",
"Github": "Github"
},
"categories": {
"Introduction": "Introduction",
"Plugins": "Plugins",
"Scripting": "Scripting",
"Usage": "Usage",
"FAQ": "FAQ",
Expand Down
23 changes: 14 additions & 9 deletions website/sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,25 @@
"introduction/plugins",
"introduction/scripts"
],
"Plugins": [
"plugins/plugins-advanced",
"plugins/redux-plugins",
"plugins/tips"
"Scripting": [
"scripting/scripting-api"
],
"Usage": [
"usage/guide",
"usage/examples"
],
"FAQ": [
"faq"
],
"Scripting": ["scripting/scripting-api"],
"Usage": ["usage/guide", "usage/examples"],
"FAQ": ["faq"],
"Other": [
{
"type": "subcategory",
"label": "Protocol",
"ids": ["other/protocol/messages", "other/protocol/socket"]
"ids": [
"other/protocol/messages",
"other/protocol/socket"
]
}
]
}
}
}
20 changes: 14 additions & 6 deletions website/sidebarsHold.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
{
"Introduction": ["introduction/quick-start"],
"Plugins": ["plugins/plugins-advanced"],
"Scripting": ["scripting/scripting-api"],
"Usage": ["usage/guide", "usage/examples"],
"Introduction": [
"introduction/quick-start"
],
"Scripting": [
"scripting/scripting-api"
],
"Usage": [
"usage/guide",
"usage/examples"
],
"FAQ": "faq/faq",
"Other": [
{
"type": "subcategory",
"label": "Protocol",
"ids": ["other/protocol/messages"]
"ids": [
"other/protocol/messages"
]
}
]
}
}
105 changes: 25 additions & 80 deletions website/siteConfig.js
Original file line number Diff line number Diff line change
@@ -1,108 +1,53 @@
require('dotenv').config()
/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
require("dotenv").config();

// See https://docusaurus.io/docs/site-config for all the possible
// site configuration options.

const siteConfig = {
title: "difys docs", // Title for your website.
module.exports = {
title: "difys docs",
tagline: "Touch botting framework",
url: "https://difysjs.github.io", // Your website URL
url: "https://difysjs.github.io",
baseUrl: "/",
docsUrl: '', // 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
docsUrl: "",
projectName: "difysjs",
organizationName: "difysjs",
// 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: [],
headerLinks: [
{ doc: 'introduction/quick-start', label: 'Quick Start' },
{ doc: 'plugins/plugins-advanced', label: 'Advanced Plugins' },
{ doc: "introduction/quick-start", label: "Quick Start" },
{
href: 'https://www.github.com/difysjs/difys',
label: 'Github'
href: "https://www.github.com/difysjs/difys",
label: "Github"
}
],

// If you have users set above, you add it here:
//users,

/* path to images for header/footer */
headerIcon: "img/difys.svg",
footerIcon: "img/difys.svg",
favicon: "img/favicon.ico",

/* Colors for website */
colors: {
primaryColor: "#151515",
secondaryColor: "#ffb800"
},
docsSideNavCollapsible: true,
/* Custom fonts for website */
/*
fonts: {
myFont: [
"Times New Roman",
"Serif"
],
myOtherFont: [
"-apple-system",
"system-ui"
]
},
*/

// This copyright info is used in /core/Footer.js and blog RSS/Atom feeds.
fonts: {
myFont: [
"Times New Roman",
"Serif"
],
myOtherFont: [
"-apple-system",
"system-ui"
]
},
*/
copyright: `Copyright © ${new Date().getFullYear()} Difys team`,

highlight: {
// Highlight.js theme to use for syntax highlighting in code blocks.
theme: 'monokai'
theme: "monokai"
},

// Add custom scripts here that would be placed in <script> tags.
scripts: [
'/scripts/sidebarScroll.js',
'/scripts/codeblock.js',
'https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js',
'https://buttons.github.io/buttons.js'
"/scripts/sidebarScroll.js",
"/scripts/codeblock.js",
"https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js",
"https://buttons.github.io/buttons.js"
],

// On page navigation for the current documentation page.
onPageNav: "separate",
// No .html extensions for paths.
cleanUrl: true,

// Open Graph and Twitter card images.
/* ogImage: "img/undraw_online.svg",
twitterImage: "img/undraw_tweetstorm.svg", */

// For sites with a sizable amount of content, set collapsible to true.
// Expand/collapse the links and subcategories under categories.
// docsSideNavCollapsible: true,

// 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: 'https://github.com/facebook/test-site',
repoUrl: "https://github.com/difysjs/difys"
}

module.exports = siteConfig
};
30 changes: 17 additions & 13 deletions website/static/index.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
<!DOCTYPE HTML>
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=introduction/quick-start.html">
<script type="text/javascript">
window.location.href = 'introduction/quick-start.html';
</script>
<title>Difys docs</title>
</head>
<body>
If you are not redirected automatically, follow this <a href="introduction/quick-start.html">link</a>.
</body>
</html>
<head>
<meta charset="UTF-8" />
<meta
http-equiv="refresh"
content="0; url=introduction/quick-start.html"
/>
<script type="text/javascript">
window.location.href = "introduction/quick-start.html";
</script>
<title>Difys docs</title>
</head>
<body>
If you are not redirected automatically, follow this
<a href="introduction/quick-start.html">link</a>.
</body>
</html>
2 changes: 1 addition & 1 deletion website/static/scripts/sidebarScroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ document.addEventListener('DOMContentLoaded', () => {
if (
bounding.top >= 0 &&
bounding.bottom <=
(window.innerHeight || document.documentElement.clientHeight)
(window.innerHeight || document.documentElement.clientHeight)
) {
// Already visible. Do nothing.
} else {
Expand Down
Loading

0 comments on commit f665419

Please sign in to comment.