Skip to content

Commit 6b67860

Browse files
authored
Merge pull request #157 from a-gave/restyling_2024
restyling 2024
2 parents 893beb2 + 11af771 commit 6b67860

215 files changed

Lines changed: 14574 additions & 35037 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
html
22
_site
33
Gemfile.lock
4+
5+
.sass-cache
6+
.jekyll-cache

Gemfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
source 'https://rubygems.org'
22

3-
gem 'jekyll', '~> 3.5.0'
4-
gem 'asciidoctor', '~> 1.5.0'
3+
gem 'jekyll'
54
gem 'coderay', '~> 1.1.0'
6-
gem 'rake-jekyll', '~> 1.1.0'
5+
6+
gem 'kramdown-parser-gfm'
77

88
group :jekyll_plugins do
99
gem "jekyll-asciidoc", '~> 1.0.0'
10-
gem 'jekyll-last-modified-at'
1110
end
11+
12+
gem 'webrick'
13+
gem 'jekyll_github_sample', git: "https://github.com/bwillis/jekyll-github-sample", ref: 'master'

README.adoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@ An image from the jekyll project is available and documented here: https://githu
2929
All you need to do -provided you have Docker installed- is to open a terminal
3030
and move to the folder where you cloned this repo and issue:
3131

32-
$ export JEKYLL_VERSION=3.5
33-
docker run --rm \
32+
$ docker run --rm \
3433
--publish 4000:4000 \
3534
--volume="$PWD:/srv/jekyll" \
36-
-it jekyll/jekyll:$JEKYLL_VERSION \
35+
-it jekyll/jekyll \
3736
jekyll serve
3837

3938
The container just created will install missing dependencies for you and will

_config.yml

Lines changed: 48 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,58 @@
11
# jekyll configuration
22

3-
title: 'Welcome to the LibreMesh project'
4-
3+
title: LibreMesh
4+
author: LibreMesh
55
exclude: [ 'Gemfile', 'Gemfile.lock', 'Rakefile', 'README', 'vendor' ]
6-
76
prefix: ''
7+
asciidoc_ext: txt
8+
9+
# Social (First three Required)
10+
repo: "https://github.com/libremesh/libremesh.github.io" # edit url
11+
github_user: "libremesh"
12+
github_repo: "lime-packages"
13+
main_repo: "https://github.com/libremesh/lime-packages"
14+
15+
matrix: libremesh-dev:matrix.guifi.net
16+
mailinglist: https://www.autistici.org/mailman/listinfo/libremesh
17+
18+
19+
logo: "assets/logo/logo_nano.png"
20+
21+
color: "#333" # primary color for header, buttons
22+
accentColor: black # purple, green, etc.
23+
themeColor: black # purple, green, blue, orange, purple, grey
24+
# fixedNav: 'true' # true or false
25+
26+
defaults:
27+
- scope:
28+
path: "_docs"
29+
type: "docs"
30+
values:
31+
layout: page
32+
- scope:
33+
path: ""
34+
type: "pages"
35+
values:
36+
layout: "page"
37+
- scope:
38+
path: "posts"
39+
type: "posts"
40+
values:
41+
layout: "post"
42+
- scope:
43+
path: "packages"
44+
type: "pages"
45+
values:
46+
layout: "packages"
47+
48+
plugins:
49+
- jekyll_github_sample
850

951
asciidoctor:
1052
attributes:
1153
- idseparator=_
12-
- source-highlighter=coderay
54+
- source-highlighter=rouge
1355
- icons=font
14-
- hardbreaks!
15-
- toc=auto
16-
17-
asciidoc_ext: txt
1856

19-
# end of configuration
57+
exclude:
58+
- collect_packages.sh

_data/packages.yml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
packages:
2+
- name: altermundi-grafana
3+
- name: auto-usb-wwan
4+
readme: Readme.md
5+
- name: babeld-auto-gw-mode
6+
readme: Readme.md
7+
- name: bandwidth-test
8+
- name: batman-adv-auto-gw-mode
9+
- name: bmx6-auto-gw-mode
10+
- name: bmx7-auto-gw-bw-mode
11+
- name: bmx7-auto-gw-mode
12+
- name: bmx7-mdns
13+
- name: check-date-http
14+
readme: Readme.md
15+
- name: check-internet
16+
readme: Readme.md
17+
- name: cotonete
18+
readme: README.md
19+
makefile_external_url: https://raw.githubusercontent.com/nicopace/cotonete/master/packages/cotonete/Makefile
20+
- name: deferable-reboot
21+
- name: eupgrade
22+
- name: first-boot-wizard
23+
- name: hotplug-initd-services
24+
- name: lime-app
25+
- name: lime-ap-watchping
26+
readme: README
27+
- name: lime-debug
28+
- name: lime-docs
29+
- name: lime-hwd-ground-routing
30+
- name: lime-hwd-openwrt-wan
31+
- name: lime-hwd-usbradio
32+
- name: lime-proto-anygw
33+
- name: lime-proto-babeld
34+
- name: lime-proto-batadv
35+
- name: lime-proto-bgp
36+
- name: lime-proto-bmx6
37+
- name: lime-proto-bmx7
38+
- name: lime-proto-olsr2
39+
- name: lime-proto-olsr6
40+
- name: lime-proto-olsr
41+
- name: lime-proto-wan
42+
- name: lime-report
43+
- name: lime-smart-wifi
44+
- name: lime-system
45+
- name: lime-webui
46+
- name: lua-argparse
47+
readme: Readme.md
48+
- name: luci-app-batman-adv
49+
- name: luci-app-openairview
50+
- name: luci-lib-jquery-flot
51+
- name: luci-mod-status
52+
- name: miniserver-client
53+
- name: pirania
54+
readme: Readme.md
55+
- name: prometheus-node-exporter-lua-location-latlon
56+
- name: prometheus-node-exporter-lua-wifi-params
57+
- name: prometheus-node-exporter-lua-wifi-stations-extra
58+
- name: prometheus-node-exporter-lua-wifi-survey
59+
- name: prometheus-node-push-influx
60+
- name: random-numgen
61+
- name: safe-reboot
62+
- name: safe-upgrade
63+
readme: Readme.md
64+
- name: shared-state-async
65+
readme: README.adoc
66+
- name: shared-state-babeld_hosts
67+
- name: shared-state-bat_hosts
68+
- name: shared-state-dnsmasq_hosts
69+
- name: shared-state-dnsmasq_leases
70+
- name: shared-state-dnsmasq_servers
71+
- name: shared-state-network_nodes
72+
- name: shared-state-node_info
73+
- name: shared-state-nodes_and_links
74+
- name: shared-state-persist
75+
- name: shared-state-pirania
76+
- name: shared-state
77+
- name: shared-state-wifi_links_info
78+
- name: soporteremoto
79+
- name: sprunge
80+
- name: ubus-lime-batman-adv
81+
readme: Readme.md
82+
- name: ubus-lime-bmx6
83+
readme: Readme.md
84+
- name: ubus-lime-groundrouting
85+
readme: Readme.md
86+
- name: ubus-lime-location
87+
readme: Readme.md
88+
- name: ubus-lime-metrics
89+
- name: ubus-lime-openairview
90+
readme: Readme.md
91+
- name: ubus-lime-utils
92+
readme: README.md
93+
- name: ubus-tmate
94+
readme: README.md
95+
- name: watchping
96+
- name: wifi-unstuck-wa

_data/structure.yml

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,37 @@
11
main:
22
- home
3+
- about
34
- news
45
- communication
56
- get_it
67
- how_it_works
78
- development
8-
- docs_overview
9-
- about
109

1110
docs:
12-
- docs_overview
13-
- quick_starting_guide
14-
- connecting_to_nodes
15-
- configuration
16-
- ethernet_config
17-
- wifi_config
18-
- hardware
19-
- troubleshooting
20-
11+
- ref: docs_overview
12+
- ref: quick_starting_guide
13+
subpages:
14+
- ref: quick_starting_guide
15+
- ref: connecting_to_nodes
16+
- ref: cli_configuration
17+
- ref: configuration
18+
subpages:
19+
- ref: configuration
20+
- ref: faq-and-recommendations
21+
- ref: lime-example
22+
- ref: ethernet_config
23+
- ref: wifi_config
24+
- ref: troubleshooting
25+
- ref: hardware
26+
subpages:
27+
- ref: hardware
28+
- ref: tp-link
29+
- ref: xiaomi-miwifir3
30+
31+
development:
32+
- ref: development
33+
subpages:
34+
- ref: development
35+
- ref: development-network_profiles
36+
- ref: development-kernel_vermagic
2137

_data/translations.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

_includes/docs_nav.html

Lines changed: 0 additions & 16 deletions
This file was deleted.

_includes/editable.html

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<!-- this will parse through the header fields and add a button to open
2+
an issue / ask a question on Github. The editable field should be in
3+
the post frontend matter, and refer to the label to open the issue for -->
4+
5+
<style>
6+
.more {
7+
float:right;
8+
font-size: 1.0rem !important;
9+
}
10+
.more:hover {
11+
color: cornflowerblue !important;
12+
}
13+
14+
.dropdown {
15+
position: relative;
16+
display: inline-block;
17+
}
18+
19+
.dropdown-content {
20+
display: none;
21+
position: absolute;
22+
background-color: #f9f9f9;
23+
min-width: 160px;
24+
font-weight: 200;
25+
box-shadow: 0px 8px 6px 0px rgba(0,0,0,0.2);
26+
padding: 0px 10px;
27+
z-index: 1;
28+
}
29+
30+
.dropdown:hover .dropdown-content {
31+
display: block;
32+
}
33+
</style>
34+
<script>
35+
$(document).ready(function() {
36+
37+
var divs = $("#h1,h2,h3,h4");
38+
$.each(divs, function(i,e){
39+
40+
// Edit
41+
var did = $(e).attr('id');
42+
var start = '<div class="dropdown more"><span><i class="fa fa-ellipsis-h more" title="Edit"></i></span><div class="dropdown-content">';
43+
44+
// Edit (assuming deployed under main organization repo)
45+
var link = "{{ site.repo }}/edit/master/{{ page.path }}#" + did;
46+
var button = "<p><a href='" + link + "' target='_blank'>Edit this page</a></p>";
47+
start += button;
48+
49+
// Issues;
50+
var link = "{{ site.repo }}/issues/new?labels={% if page.editable %}{{ page.editable }}{% else %}question{% endif %}&title=Question:&body=Question on: {{ site.repo }}/tree/master/{{ page.path }}%23" + did;
51+
52+
var button = "<p><a href='" + link + "' target='_blank'>Ask a Question</a></p>";
53+
start += button;
54+
start += "</div></div>";
55+
$(e).append(start)
56+
57+
})
58+
});
59+
</script>

_includes/footer.html

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<footer class="c-footer md-footer-nav">
2+
<div class="u-container c-footer__container">
3+
<nav class="md-footer-nav__inner md-grid">
4+
{% if page.next.url %}<a href="{{ site.baseurl }}{{ page.next.url }}" title="{{ page.next.title }}" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
5+
<div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
6+
<span class="md-flex__ellipsis">
7+
<span class="md-footer-nav__direction">
8+
Next
9+
</span>
10+
{{ page.next.title }}
11+
</span>
12+
</div>
13+
<div class="md-flex__cell md-flex__cell--shrink">
14+
<i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
15+
</div>
16+
</a>{% endif %}
17+
</nav>
18+
</div>
19+
20+
<div class="md-footer-meta md-typeset">
21+
<div class="md-footer-meta__inner md-grid">
22+
<div class="md-footer-copyright">
23+
24+
<div class="md-footer-copyright__highlight">
25+
Copyright &copy; {{ site.time | date: '%Y' }} - {{ site.author }}
26+
</div>
27+
</div>
28+
29+
30+
<div class="md-footer-social">
31+
<!-- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> -->
32+
<a href="https://github.com/{{ site.github_user }}" target="_blank" class="md-footer-social__link fa-brands fa-github"></a>
33+
{% if site.matrix %}<a href="https://matrix.to/#/#{{ site.matrix }}" target="_blank" class="md-footer-social__link fa fa-comments"></a>{% endif %}
34+
{% if site.mailinglist %}<a href="{{ site.mailinglist }}" target="_blank" class="md-footer-social__link fa fa-envelope"></a>{% endif %}
35+
{% if site.dockerhub %}<a href="http://hub.docker.com/r/{{ site.dockerhub }}" class="md-footer-social__link fa" target="_blank">
36+
<img src="{{ site.baseurl }}/assets/img/docker-clear.png" style="margin-left:10px" width="20px">
37+
</a>{% endif %}
38+
</div>
39+
40+
</div>
41+
</div>
42+
43+
</footer>
44+
45+
{% assign slashes = page.url | split: "/" %}

0 commit comments

Comments
 (0)