All packages

This commit is contained in:
Anton Maisak 2021-04-21 15:30:51 +03:00
parent 199aaee99f
commit 4762f75f62
10 changed files with 37 additions and 5 deletions

View File

@ -2,14 +2,9 @@ window.$docsify = {
name: 'Linux для себя',
repo: 'https://github.com/Linux4Yourself/Linux4Yourself.Book',
coverpage: false,
// load from _navbar.md
loadNavbar: true,
// load from nav.md
loadNavbar: 'nav.md',
// load from _sidebar.md
loadSidebar: true,
auto2top: true,
// Change to /home.md
homepage: 'index.md',
autoHeader: true,
executeScript: true,

View File

@ -31,6 +31,7 @@
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<script src="//polyfill.io/v3/polyfill.min.js?features=String.prototype.normalize"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</body>
</html>

0
docs/prepare/_navbar.md Normal file
View File

4
docs/prepare/_sidebar.md Normal file
View File

@ -0,0 +1,4 @@
- [Подготовительные работы](prepare/prepare)
- [Все пакеты](prepare/packages/all-packages)

View File

View File

@ -0,0 +1,4 @@
- [Подготовительные работы](prepare/prepare)
- [Все пакеты](prepare/packages/all-packages)

View File

@ -0,0 +1,25 @@
# Все пакеты
<div
v-for="pkg in packages"
class="pkg"
>
<h2>{{ pkg.name }}</h2>
<span>Версия: {{ pkg.version }}</span>
<p>{{ pkg.description }}</p>
<a :href="pkg.url">{{ pkg.url }}</a>
</div>
<script>
// TODO: WIP.
new Vue({
el: '#main',
data: { packages: [] },
mounted: function () {
axios
.get('https://raw.githubusercontent.com/Linux4Yourself/Linux4Yourself.Book.Packages/feature/core-packages/src/core-packages.json')
.then(response => (this.packages = response.data));
},
})
</script>

1
docs/prepare/prepare.md Normal file
View File

@ -0,0 +1 @@
# Подготовительные работы

View File

@ -2,3 +2,5 @@
- [Предисловие](prologue/foreword.md)
- [Cover page](cover.md)
- [Подготовительные работы](prepare/prepare.md)