-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New guides & localization #30
Open
MaXFeeD
wants to merge
5
commits into
mineprogramming:master
Choose a base branch
from
Nernar:legacy
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
3939adf
Typo & audit fix
MaXFeeD 96decb5
Fixed Creating a Custom Dimension path mistypo
MaXFeeD f393b55
Simplified Docsify implementation
MaXFeeD 59c91d5
No related to commit itself, just restored changes, everything mainta…
MaXFeeD cc92652
Merge branch 'master' of https://github.com/mineprogramming/innercore…
MaXFeeD File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"contents": [ "docs/ru/config/_sidebar.md" ], | ||
"pathToPublic": "docs.pdf", | ||
"emulateMedia": "screen" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,31 @@ | ||
name: Build docs & Deploy | ||
name: Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
- name: Cache | ||
uses: actions/cache@v1 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: Setup grunt | ||
run: npm install -g grunt-cli | ||
- name: Setup other dependencies | ||
run: npm install --safe-dev | ||
- name: Build docs | ||
run: grunt docs_api | ||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@4.1.6 | ||
- run: npm install -g grunt-cli | ||
- run: npm install --safe-dev | ||
- run: grunt docs_api | ||
- uses: JamesIves/github-pages-deploy-action@4.1.6 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BASE_BRANCH: master | ||
BRANCH: gh-pages | ||
FOLDER: out | ||
single-commit: true | ||
FOLDER: docs | ||
single-commit: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/documentation/core-engine/headers/core-engine.d.ts | ||
/package-lock.json | ||
/node_modules | ||
/OLD | ||
/out | ||
/node_modules/ | ||
/docs/README.md | ||
/docs/headers/ | ||
/docs/api/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,8 @@ minecraft | |
Superflat | ||
Params | ||
perlin | ||
шейдеры | ||
шейдер | ||
Майнкрафт | ||
суперплоскость | ||
калбек |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Oops... Not found! | ||
|
||
## [Diving back into documentation...](https://docs.mineprogramming.org/#/) | ||
|
||
<script> | ||
(function (url) { | ||
var ua = navigator.userAgent.toLowerCase(), | ||
isIE = ua.indexOf('msie') !== -1, | ||
version = parseInt(ua.substr(4, 2), 10); | ||
|
||
// Internet Explorer 8 and lower | ||
if (isIE && version < 9) { | ||
var link = document.createElement('a'); | ||
link.href = url; | ||
document.body.appendChild(link); | ||
link.click(); | ||
} | ||
|
||
// All other browsers can use the standard window.location.href (they don't lose HTTP_REFERER like Internet Explorer 8 & lower does) | ||
else { | ||
window.location.href = url; | ||
} | ||
})("https://docs.mineprogramming.org/#/"); | ||
</script> |
2 changes: 1 addition & 1 deletion
2
documentation/static/en/config/_navbar.md → docs/config/_navbar.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
- Language | ||
- [:uk: English](/en/) | ||
- [:us: English](/) | ||
- [:ru: Русский](/ru/) |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line 3: maybe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
- [Horizon](/page/apps/horizon/index.md) | ||
- [Packs](/page/apps/horizon/pack-system.md) | ||
- [What is in pack](/page/apps/horizon/packs.md) | ||
|
||
- [Inner Core](/page/apps/innercore/index.md) | ||
- [Core Engine API](/api/modules.html ':ignore :target=_self') | ||
- [Changelog](/page/apps/innercore/changelog.md) | ||
|
||
Getting Started | ||
- [Inner Core Mod Toolchain](/page/guides/getting-started/setup-toolchain.md) | ||
- [Configure your toolchain](/page/guides/getting-started/toolchain-configuration.md) | ||
- [Mod Configuration Files](/page/guides/getting-started/config.md) | ||
|
||
Minecraft | ||
- [Attributes](/page/guides/minecraft/attributes.md) | ||
- [Player Containers](/page/guides/minecraft/playercontainers.md) | ||
|
||
Mod API | ||
- [Callbacks](/page/guides/mod-api/callbacks.md) | ||
|
||
Mod Resources | ||
- [Materials](/page/guides/mod-resources/materials.md) | ||
|
||
Player | ||
- [Abilities](/page/guides/player/abilities.md) | ||
|
||
World | ||
- [Biomes](/page/guides/world/biomes.md) | ||
- [Dimensions](/page/guides/world/dimensions.md) | ||
|
||
- [Contributing](/page/other/contributing.md) | ||
- [Creating new pages](/page/other/create-page.md) | ||
|
||
- Libraries | ||
- [BackpackAPI](/page/lib/BackpackAPI.md) | ||
|
||
- Mods | ||
- [IndustrialCraft](/page/mod/IndustrialCraft2.md) |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
<!DOCTYPE html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Inner Core Docs</title> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | ||
<meta name="description" content="Horizon, Inner Core and Core Engine documentation in one place."> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0"> | ||
<!-- Do not 'fix' non-relative src location, it will be overrided by Docsify alias to perform assignment. --> | ||
<link rel="stylesheet" href="/src/themes/docsify-darklight-theme.min.css" title="docsify-darklight-theme" type="text/css" /> | ||
<!-- link rel="stylesheet" href="/src/themes/prism-vsc-dark-plus.css" type="text/css" /--> | ||
</head> | ||
<body> | ||
<div id="app">Inner Core Docs</div> | ||
<script> | ||
(function (redirect, href) { | ||
if (/^\/?en\//g.test(href)) { | ||
return redirect('#' + href.replace('en', '').replace('//', '')); | ||
} | ||
if (href == 'ru' || href == '/ru') { | ||
return redirect('#/ru/'); | ||
} | ||
if (href == 'en' || href == '/en') { | ||
return redirect('#/'); | ||
} | ||
})(function (url) { | ||
console.log(url); | ||
var ua = navigator.userAgent.toLowerCase(), | ||
isIE = ua.indexOf('msie') !== -1, | ||
version = parseInt(ua.substr(4, 2), 10); | ||
|
||
// Internet Explorer 8 and lower | ||
if (isIE && version < 9) { | ||
var link = document.createElement('a'); | ||
link.href = url; | ||
document.body.appendChild(link); | ||
link.click(); | ||
} | ||
|
||
// All other browsers can use the standard window.location.href (they don't lose HTTP_REFERER like Internet Explorer 8 & lower does) | ||
else { | ||
window.location.href = url; | ||
} | ||
}, (function () { | ||
var href = window.location.href; | ||
var index = href.indexOf('#'); | ||
return index === -1 ? '' : href.slice(index + 1); | ||
})()); | ||
</script> | ||
<script> | ||
window.$docsify = { | ||
name: 'Inner Core Docs', | ||
repo: 'mineprogramming/innercore-docs', | ||
loadSidebar: 'config/_sidebar.md', | ||
loadNavbar: 'config/_navbar.md', | ||
notFoundPage: { | ||
'/ru/': 'ru/config/_404.md', | ||
'/': 'config/_404.md' | ||
}, | ||
subMaxLevel: 4, | ||
relativePath: true, | ||
nameLink: { | ||
'/ru': '#/ru/', | ||
'/': '#/' | ||
}, | ||
autoHeader: true, | ||
executeScript: true, | ||
auto2top: true, | ||
basePath: '/', | ||
// noCompileLinks: [ | ||
// 'https?://(docs.mineprogramming.org|localhost).*)' | ||
// ], | ||
// Just redirects page to default language without loading config | ||
// fallbackLanguages: ['en', 'ru'], | ||
// Reserved for debugging purposes only! | ||
alias: { | ||
'/ru/(.*/|)config/(.*)': '/ru/config/$2', | ||
'/.*/config/(.*)': '/config/$1', | ||
'/.*/src/(.*)': '/src/$1' | ||
}, | ||
themeable: { | ||
readyTransition: true, // default | ||
responsiveTables: true // default | ||
}, | ||
// https://github.com/jperasmus/docsify-copy-code | ||
copyCode: { | ||
buttonText: { | ||
'/ru/': 'Скопировать в буфер обмена', | ||
'/': 'Copy to clipboard' | ||
}, | ||
errorText: { | ||
'/ru/': 'Ошибка', | ||
'/': 'Error' | ||
}, | ||
successText: { | ||
'/ru/': 'Скопировано', | ||
'/': 'Copied' | ||
} | ||
}, | ||
// https://jhildenbiddle.github.io/docsify-tabs | ||
tabs: { | ||
persist: true, // default | ||
sync: true, // default | ||
theme: 'classic', // default | ||
tabComments: true, // default | ||
tabHeadings: true // default | ||
}, | ||
timeUpdater: { | ||
text: '> Last Modify: {docsify-updated}', | ||
formatUpdated: '{DD}.{MM}.{YYYY}' | ||
}, | ||
plugins: [ | ||
function (hook, vm) { | ||
hook.beforeEach(function (html) { | ||
var url; | ||
if (/githubusercontent\.com/.test(vm.route.file)) { | ||
url = vm.route.file | ||
.replace('raw.githubusercontent.com', 'github.com') | ||
.replace(/\/gh-pages/, '/blob/gh-pages'); | ||
} else if (/jsdelivr\.net/.test(vm.route.file)) { | ||
url = vm.route.file.replace('cdn.jsdelivr.net/gh', 'github.com').replace('@gh-pages', '/blob/gh-pages'); | ||
} else { | ||
url = 'https://github.com/mineprogramming/innercore-docs/blob/gh-pages/' + vm.route.file; | ||
} | ||
if (/ru\//.test(vm.route.file)) { | ||
return html + '\n\n[:memo: Изменить документ](' + url + ')'; | ||
} | ||
return html + '\n\n[:memo: Edit Document](' + url + ')'; | ||
}); | ||
} | ||
] | ||
}; | ||
</script> | ||
<script src="/src/docsify.min.js"></script> | ||
<script src="/src/themes/docsify-darklight-theme.min.js"></script> | ||
<script src="/src/syntax/prism-json.min.js"></script> | ||
<script src="/src/syntax/prism-jsonp.min.js"></script> | ||
<script src="/src/syntax/prism-python.min.js"></script> | ||
<script src="/src/syntax/prism-markdown.min.js"></script> | ||
<script src="/src/syntax/prism-bash.min.js"></script> | ||
<script src="/src/syntax/prism-batch.min.js"></script> | ||
<script src="//localhost:35729/livereload.js?snipver=1" async="" defer=""></script></body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
## What is Horizon Modding Kernel (HMK)? | ||
|
||
Horizon is a universal platform for launching mobile games with mods. At the moment, it supports only Inner Core, which contains Minecraft: Bedrock Edition 1.11.4 and 1.16.201. Horizon allows you to create and store several independent Inner Core packages, which in turn allows you to divide different mod packs and worlds with these packages. Development can take place in JavaScript, Java, C++ and not only. | ||
|
||
## Structure of the HMK pack | ||
|
||
1. The game on which the launcher is based | ||
2. The launcher on which the user will play | ||
3. The browser of mods that the user can apply to the game | ||
|
||
## Native mods | ||
|
||
Mods are written in C++ and applied to game directly. | ||
They have full access to game and can use all its functions. | ||
|
||
## Useful links | ||
|
||
[Horizon Modding Kernel](https://play.google.com/store/apps/details?id=com.zheka.horizon) | ||
|
||
[Group in VK](https://vk.com/core_engine) | ||
|
||
[Inner Core Mod Toolchain — develop and build modifications](https://github.com/zheka2304/innercore-mod-toolchain) | ||
|
||
[Setup up Inner Core Mod Toolchain on YouTube](https://www.youtube.com/watch?v=ofwKkRYh97k) | ||
|
||
[Tools for development of mods](https://icmods.mineprogramming.org/dev) | ||
|
||
[Discussion in VK for sending messages about bugs](https://vk.com/topic-134044100_41523503) | ||
|
||
[Documentation for development of mods](https://docs.mineprogramming.org) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Goto
->Go to