Skip to content

Commit d9aac51

Browse files
authored
checkin Project.toml (#46)
It would let us easily serve the webpage locally if we check-in the Project.toml file and allow instantiating the serve environment from it.
1 parent 3f79f9d commit d9aac51

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ jobs:
1717
with:
1818
version: 1.5
1919
- run: julia -e '
20-
using Pkg; Pkg.add(["NodeJS", "Franklin", "BibTeX"]);
20+
using Pkg; Pkg.activate("."); Pkg.instantiate();
2121
using NodeJS; run(`$(npm_cmd()) install highlight.js`);
2222
using Franklin;
23-
Pkg.activate("."); Pkg.instantiate();
2423
optimize()'
2524
- name: Build and Deploy
2625
uses: JamesIves/github-pages-deploy-action@releases/v3

Project.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[deps]
2+
BibTeX = "7b0aa2c9-049f-5cec-894a-2b6b781bb25e"
3+
Franklin = "713c75ef-9fc9-4b05-94a9-213340da978e"
4+
NodeJS = "2bd173c7-0d6d-553b-b6af-13a54713934c"

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ JuliaLab Website. Edit this to edit the website.
1111
- "People" section: `_assets/people.csv` and `_assets/people` (pay attention to the name format)
1212

1313
### Notes about deploy
14-
- Changes applied to the master branch will be automatically deployed to the gh-pages branch.
15-
- If you add a new dependency, remember to add it also in `.github/workflows/deploy.yml`.
14+
- You can serve the webpage locally by:
15+
> `$ julia --project=@.`
16+
```julia
17+
julia> using Pkg; Pkg.instantiate()
1618

19+
julia> using Franklin; Franklin.serve()
20+
```
21+
- Changes applied to the `master` branch will be automatically deployed to the `gh-pages` branch.
22+
- If you add a new dependency, remember to add it also in `Project.toml`.

0 commit comments

Comments
 (0)