@compiiile/compiiile 2.7.2 → 2.7.3
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.
- package/Dockerfile +11 -0
- package/README.md +16 -4
- package/package.json +1 -1
package/Dockerfile
ADDED
package/README.md
CHANGED
|
@@ -49,15 +49,14 @@ You can install Compiiile either globally or per-project:
|
|
|
49
49
|
|
|
50
50
|
### Globally
|
|
51
51
|
|
|
52
|
-
Open a terminal and type
|
|
53
|
-
or [yarn](https://yarnpkg.com/) depending on which package manager you are using:
|
|
52
|
+
Open a terminal and type the following command:
|
|
54
53
|
|
|
55
54
|
```bash
|
|
56
|
-
yarn global add @compiiile/compiiile # install globally with yarn
|
|
57
|
-
# or
|
|
58
55
|
npm install -g @compiiile/compiiile # install globally with npm
|
|
59
56
|
```
|
|
60
57
|
|
|
58
|
+
> Global installation won't work using `yarn` because modules are not resolved the same way.
|
|
59
|
+
|
|
61
60
|
### Per-project
|
|
62
61
|
|
|
63
62
|
Open a terminal inside the folder containing your markdown files. Then, add Compiiile as a local command using yarn or
|
|
@@ -69,6 +68,19 @@ yarn add @compiiile/compiiile # install as a project dependency with yarn
|
|
|
69
68
|
npm install @compiiile/compiiile # install as a project dependency with npm
|
|
70
69
|
```
|
|
71
70
|
|
|
71
|
+
### Using Docker
|
|
72
|
+
|
|
73
|
+
First, copy the `./Dockerfile` from this repo to your root folder.
|
|
74
|
+
|
|
75
|
+
Run the following commands :
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
docker build -t <custom-image-name> .
|
|
79
|
+
docker run -p 8080:80 <custom-image-name>
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
> Replace `<custom-image-name>` with the tag you want.
|
|
83
|
+
|
|
72
84
|
## Quick start
|
|
73
85
|
|
|
74
86
|
To make yourself an idea and quickly get started using Compiiile, here are some commands that you can run in your
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compiiile/compiiile",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.7.
|
|
4
|
+
"version": "2.7.3",
|
|
5
5
|
"description": "The most convenient way to render a folder containing markdown files. Previewing and searching markdown files has never been that easy.",
|
|
6
6
|
"author": "AlbanCrepel <alban.crepel@gmail.com>",
|
|
7
7
|
"license": "GPL-3.0-only",
|