You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,35 @@ This is the source-code repository for the **bitcoinj** website, published at [b
7
7
8
8
This site is written in [GitHub-flavored Markdown](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/about-writing-and-formatting-on-github), built using the [Jekyll static site generator](https://jekyllrb.com) and published via [GitHub Pages](https://pages.github.com).
9
9
10
+
## Building locally in a Nix Shell
11
+
12
+
The Nix development shell will install Jekyll for building and serving the site and Java 25 (if you want a simple Java-based tool to serve/test the static site.)
13
+
14
+
1. Run `nix develop`
15
+
2. Run `jekyll build`
16
+
17
+
This will build the site into the `_site` directory.
18
+
19
+
## Serving the site locally
20
+
21
+
To serve the site with Jekyll and dynamic reloading:
22
+
23
+
*`jekyll serve --livereload --incremental`
24
+
25
+
To run a simple, local Java-based webserver to view the site use:
26
+
27
+
*`./scripts/JekyllServer.java`
28
+
29
+
## Building locally without Nix
30
+
31
+
If you install Jekyll 3.10.0 and Ruby 3.3, you should be able to use the same commands as shown above, but this is untested/unsupported. You should also be able to serve the generated static site with the Java 25 script.
32
+
33
+
## Building as a Nix Package
34
+
35
+
*`nix build .#`
36
+
37
+
This should build the package in `result`.
38
+
10
39
## Contributing
11
40
12
41
To report a documentation issue or make a suggestion for improvement use [GitHub Issues](). You can also submit a [pull-request](https://github.com/bitcoinj/bitcoinj.github.io/pulls) for the website.
0 commit comments