statique 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/docs/assets/css/app.scss +1 -0
- data/docs/content/index.md +57 -0
- data/docs/layouts/layout.slim +12 -0
- data/lib/statique/app.rb +1 -1
- data/lib/statique/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50d52d44d67fdcebdfaf1408ad1f3734b2764883cce75d8f10c44d9c7caad3c0
|
4
|
+
data.tar.gz: 60a65af96f09f7ee6ee098cc9ffaed7b9a5e00cf0ce9efbf59952a2f3ea2b5c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c4eb0792b466e0fdbd2816ca0edd5034fb2d259ebac099ddc8cec11f3aa357be011fdc39a8143eafe8f517f249fbcef99642c7eb59f199b25b544837dd2f881
|
7
|
+
data.tar.gz: 8e7fb2885dcd118ffac0a86ae502060ae1bef7a889adda8b08af5814c86e35c0a54520f979545d25a48df7b4a1b289db4f763b9605b2c018920a0b88c84db070
|
@@ -0,0 +1 @@
|
|
1
|
+
@import url("https://cdn.jsdelivr.net/npm/water.css@2/out/water.css");
|
@@ -0,0 +1,57 @@
|
|
1
|
+
Statique is a static site generator written in [Ruby](https://www.ruby-lang.org/) and uses [Roda](https://roda.jeremyevans.net/) for the Rack middleware. By default, it comes with support for [Slim](http://slim-lang.com/), [Sass](https://sass-lang.com/) and [Markdown](https://daringfireball.net/projects/markdown/).
|
2
|
+
|
3
|
+
## Installation
|
4
|
+
|
5
|
+
Install it as a [Whalebrew](https://github.com/whalebrew/whalebrew) package (recommended):
|
6
|
+
|
7
|
+
$ whalebrew install pusewicz/statique
|
8
|
+
|
9
|
+
Install it as a Docker image:
|
10
|
+
|
11
|
+
$ docker pull pusewicz/statique
|
12
|
+
|
13
|
+
Install it as a Ruby gem:
|
14
|
+
|
15
|
+
$ gem install statique
|
16
|
+
|
17
|
+
## Usage
|
18
|
+
|
19
|
+
### Generate your new Statique website
|
20
|
+
|
21
|
+
#### Whalebrew package, Ruby gem
|
22
|
+
|
23
|
+
$ statique init my-website
|
24
|
+
|
25
|
+
#### Docker
|
26
|
+
|
27
|
+
$ docker run -it --rm -v "$PWD":/workdir -w /workdir pusewicz/statique init my-website
|
28
|
+
|
29
|
+
### Start the Statique server
|
30
|
+
|
31
|
+
First, change into your new Statique website directory:
|
32
|
+
|
33
|
+
$ cd my-website
|
34
|
+
|
35
|
+
#### Whalebrew package, Ruby gem
|
36
|
+
|
37
|
+
$ statique server
|
38
|
+
|
39
|
+
#### Docker
|
40
|
+
|
41
|
+
$ docker run -it --rm -p 3000:3000 -v "$PWD":/workdir -w /workdir pusewicz/statique server
|
42
|
+
|
43
|
+
### Build your Statique website
|
44
|
+
|
45
|
+
The final step before deploying your website to your preferred host is to build it. By default, the built website will be available in the `dist/` subdirectory.
|
46
|
+
|
47
|
+
First, change into your new Statique website directory:
|
48
|
+
|
49
|
+
$ cd my-website
|
50
|
+
|
51
|
+
#### Whalebrew package, Ruby gem
|
52
|
+
|
53
|
+
$ statique build
|
54
|
+
|
55
|
+
#### Docker
|
56
|
+
|
57
|
+
$ docker run -it --rm -v "$PWD":/workdir -w /workdir pusewicz/statique build
|
@@ -0,0 +1,12 @@
|
|
1
|
+
doctype html
|
2
|
+
html
|
3
|
+
head
|
4
|
+
meta charset="UTF-8"
|
5
|
+
meta name="generator" content="Statique #{Statique.version}"
|
6
|
+
title Statique
|
7
|
+
== assets(:css)
|
8
|
+
body
|
9
|
+
header
|
10
|
+
h1 Statique–Static Site Generator
|
11
|
+
main== yield
|
12
|
+
footer Made with Statique v#{Statique.version}
|
data/lib/statique/app.rb
CHANGED
@@ -33,7 +33,7 @@ class Statique
|
|
33
33
|
if Statique.paths.assets.exist?
|
34
34
|
css_files = Statique.paths.assets.join("css").glob("*.{css,scss}")
|
35
35
|
js_files = Statique.paths.assets.join("js").glob("*.js")
|
36
|
-
plugin :assets, css: css_files.map { _1.basename.to_s }, js: js_files.map { _1.basename.to_s }, public: Statique.paths.destination, precompiled: Statique.paths.destination.join("assets/manifest.json")
|
36
|
+
plugin :assets, css: css_files.map { _1.basename.to_s }, js: js_files.map { _1.basename.to_s }, public: Statique.paths.destination, precompiled: Statique.paths.destination.join("assets/manifest.json"), relative_paths: true
|
37
37
|
plugin :assets_preloading
|
38
38
|
|
39
39
|
Statique.mode.build do
|
data/lib/statique/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: statique
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Usewicz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|
@@ -268,6 +268,9 @@ files:
|
|
268
268
|
- Rakefile
|
269
269
|
- bin/console
|
270
270
|
- bin/setup
|
271
|
+
- docs/assets/css/app.scss
|
272
|
+
- docs/content/index.md
|
273
|
+
- docs/layouts/layout.slim
|
271
274
|
- exe/statique
|
272
275
|
- lib/statique.rb
|
273
276
|
- lib/statique/app.rb
|
@@ -292,7 +295,7 @@ licenses:
|
|
292
295
|
metadata:
|
293
296
|
homepage_uri: https://github.com/pusewicz/statique
|
294
297
|
source_code_uri: https://github.com/pusewicz/statique
|
295
|
-
changelog_uri: https://raw.githubusercontent.com/pusewicz/statique/v0.1.
|
298
|
+
changelog_uri: https://raw.githubusercontent.com/pusewicz/statique/v0.1.1/CHANGELOG.md
|
296
299
|
post_install_message:
|
297
300
|
rdoc_options: []
|
298
301
|
require_paths:
|