mirror of
https://github.com/nicolabs/nicolabs.net.git
synced 2025-09-21 00:32:01 +02:00
~ updated Makefile
~ updated Gems
This commit is contained in:
parent
16a7617b67
commit
2f8d6e5ceb
10
Gemfile.lock
10
Gemfile.lock
|
@ -16,7 +16,7 @@ GEM
|
|||
http_parser.rb (~> 0)
|
||||
eventmachine (1.2.7)
|
||||
execjs (2.8.1)
|
||||
faraday (2.7.2)
|
||||
faraday (2.7.3)
|
||||
faraday-net_http (>= 2.0, < 3.1)
|
||||
ruby2_keywords (>= 0.0.4)
|
||||
faraday-net_http (3.0.2)
|
||||
|
@ -67,7 +67,7 @@ GEM
|
|||
jekyll-redirect-from (0.16.0)
|
||||
jekyll (>= 3.3, < 5.0)
|
||||
jekyll-regex-replace (1.1.0)
|
||||
jekyll-relative-links (0.6.1)
|
||||
jekyll-relative-links (0.7.0)
|
||||
jekyll (>= 3.3, < 5.0)
|
||||
jekyll-sass-converter (3.0.0)
|
||||
sass-embedded (~> 1.54)
|
||||
|
@ -83,8 +83,8 @@ GEM
|
|||
rexml
|
||||
kramdown-parser-gfm (1.1.0)
|
||||
kramdown (~> 2.0)
|
||||
liquid (4.0.3)
|
||||
listen (3.7.1)
|
||||
liquid (4.0.4)
|
||||
listen (3.8.0)
|
||||
rb-fsevent (~> 0.10, >= 0.10.3)
|
||||
rb-inotify (~> 0.9, >= 0.9.10)
|
||||
mercenary (0.4.0)
|
||||
|
@ -121,7 +121,7 @@ GEM
|
|||
thread_safe (~> 0.1)
|
||||
tzinfo-data (1.2022.7)
|
||||
tzinfo (>= 1.0.0)
|
||||
unicode-display_width (2.3.0)
|
||||
unicode-display_width (2.4.2)
|
||||
wdm (0.1.1)
|
||||
webrick (1.7.0)
|
||||
|
||||
|
|
11
Makefile
11
Makefile
|
@ -1,13 +1,18 @@
|
|||
all: install
|
||||
all: setup update build
|
||||
|
||||
install:
|
||||
setup:
|
||||
bundle install
|
||||
|
||||
update:
|
||||
bundle update
|
||||
|
||||
serve:
|
||||
serve: update
|
||||
bundle exec jekyll serve --livereload -H '*' --drafts
|
||||
|
||||
build:
|
||||
rm -rf assets/uml docs/assets/uml
|
||||
bundle exec jekyll build
|
||||
|
||||
clean:
|
||||
bundle exec jekyll clean
|
||||
rm -rf assets/uml docs/assets/uml
|
||||
|
|
20
README.md
20
README.md
|
@ -2,9 +2,10 @@ Source code for https://www.nicolabs.net
|
|||
|
||||
## Setup
|
||||
|
||||
- Install jekyll : `sudo gem install jekyll jekyll-feed jekyll-gist jekyll-paginate jekyll-sass-converter jekyll-coffeescript`
|
||||
- [Install plantuml and a `plantuml` command in the PATH](https://github.com/yegor256/jekyll-plantuml#install-plantumljar) (requirement of *jekyll-plantuml*) (and probably *dot* : `sudo apt install graphviz`)
|
||||
- Run `bundle install`
|
||||
- Install **ruby** : `sudo apt install ruby`
|
||||
- Install **jekyll** : `sudo gem install jekyll jekyll-feed jekyll-gist jekyll-paginate jekyll-sass-converter jekyll-coffeescript`
|
||||
- [Install **plantuml** and a `plantuml` command in the PATH](https://github.com/yegor256/jekyll-plantuml#install-plantumljar) (requirement of *jekyll-plantuml*) (and probably **dot** : `sudo apt install graphviz` for Debian systems)
|
||||
- Install **make** then run `make setup` (or look into `Makefile` for the underlying commands)
|
||||
|
||||
|
||||
## Assets/blog folder
|
||||
|
@ -23,7 +24,11 @@ The new layout is :
|
|||
|
||||
## Previewing locally
|
||||
|
||||
Run `bundle exec jekyll serve --livereload -H '*' --drafts` to start a local server with automatic reload and drafts preview.
|
||||
Run the following to update Ruby gems & and start a local server with automatic reload and drafts preview :
|
||||
|
||||
```shell
|
||||
make serve
|
||||
```
|
||||
|
||||
|
||||
## Drafts
|
||||
|
@ -64,10 +69,11 @@ Based on :
|
|||
|
||||
## Publishing
|
||||
|
||||
1. Update Ruby gems & build the final site without drafts :
|
||||
1. Build the final site without drafts :
|
||||
|
||||
bundle update
|
||||
bundle exec jekyll build
|
||||
```shell
|
||||
make build
|
||||
```
|
||||
|
||||
2. Add, commit & push files [into the *master* git branch](https://help.github.com/en/github/working-with-github-pages/about-github-pages#publishing-sources-for-github-pages-sites), including the `docs` directory (same as Jekyll's `_site` directory, but renamed for github pages)
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.3.1">Jekyll</generator><link href="https://www.nicolabs.net/feed.xml" rel="self" type="application/atom+xml" /><link href="https://www.nicolabs.net/" rel="alternate" type="text/html" /><updated>2023-01-16T22:43:32+01:00</updated><id>https://www.nicolabs.net/feed.xml</id><title type="html">nicolabs</title><subtitle>Work in progress...</subtitle><author><name>nicobo</name></author><entry><title type="html">A nice multi-factor setup for SSH</title><link href="https://www.nicolabs.net/2022/nice-MFA-setup-for-SSH" rel="alternate" type="text/html" title="A nice multi-factor setup for SSH" /><published>2022-12-22T00:00:00+01:00</published><updated>2022-12-22T00:00:00+01:00</updated><id>https://www.nicolabs.net/2022/nice-MFA-setup-for-SSH</id><content type="html" xml:base="https://www.nicolabs.net/2022/nice-MFA-setup-for-SSH"><![CDATA[<p><img src="/assets/blog/3rdparty/pictures/solokeys.png" alt="SoloKeys" /></p>
|
||||
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.3.1">Jekyll</generator><link href="https://www.nicolabs.net/feed.xml" rel="self" type="application/atom+xml" /><link href="https://www.nicolabs.net/" rel="alternate" type="text/html" /><updated>2023-01-16T23:11:39+01:00</updated><id>https://www.nicolabs.net/feed.xml</id><title type="html">nicolabs</title><subtitle>Work in progress...</subtitle><author><name>nicobo</name></author><entry><title type="html">A nice multi-factor setup for SSH</title><link href="https://www.nicolabs.net/2022/nice-MFA-setup-for-SSH" rel="alternate" type="text/html" title="A nice multi-factor setup for SSH" /><published>2022-12-22T00:00:00+01:00</published><updated>2022-12-22T00:00:00+01:00</updated><id>https://www.nicolabs.net/2022/nice-MFA-setup-for-SSH</id><content type="html" xml:base="https://www.nicolabs.net/2022/nice-MFA-setup-for-SSH"><![CDATA[<p><img src="/assets/blog/3rdparty/pictures/solokeys.png" alt="SoloKeys" /></p>
|
||||
<figcaption>Illustration © 2022 SOLOKEYS - https://solokeys.com</figcaption>
|
||||
|
||||
<p>This article shows how to set up an SSH server so that users can authenticate :</p>
|
||||
|
|
Loading…
Reference in a new issue