Add flake and fix config.toml
remove theme.toml It appears you based the repo on a theme or something?
This commit is contained in:
parent
b34b4f92c6
commit
231731cd6d
17
config.toml
17
config.toml
|
@ -1,12 +1,17 @@
|
||||||
base_url = "https://getzola.github.io/book/"
|
# The URL the site will be built for
|
||||||
|
base_url = "https://bluespec.dev"
|
||||||
|
|
||||||
|
# Whether to automatically compile all Sass files in the sass directory
|
||||||
compile_sass = true
|
compile_sass = true
|
||||||
title = "book theme"
|
|
||||||
description = "A book theme"
|
# Whether to build a search index to be used later on by a JavaScript library
|
||||||
build_search_index = true
|
build_search_index = true
|
||||||
|
|
||||||
[markdown]
|
[markdown]
|
||||||
highlight_code = true
|
# Whether to do syntax highlighting
|
||||||
highlight_theme = "css"
|
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
|
||||||
|
highlight_code = false
|
||||||
|
#highlight_theme = "css"
|
||||||
|
|
||||||
[extra]
|
[extra]
|
||||||
book_number_chapters = true
|
# Put all your custom variables here
|
||||||
|
|
61
flake.lock
Normal file
61
flake.lock
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1735821806,
|
||||||
|
"narHash": "sha256-cuNapx/uQeCgeuhUhdck3JKbgpsml259sjUQnWM7zW8=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "d6973081434f88088e5321f83ebafe9a1167c367",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixpkgs-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs",
|
||||||
|
"utils": "utils"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"systems": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"utils": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1731533236,
|
||||||
|
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
60
flake.nix
Normal file
60
flake.nix
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
{
|
||||||
|
inputs = {
|
||||||
|
nixpkgs = {
|
||||||
|
url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||||
|
};
|
||||||
|
utils.url = "github:numtide/flake-utils";
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs =
|
||||||
|
inputs:
|
||||||
|
inputs.utils.lib.eachDefaultSystem (
|
||||||
|
system:
|
||||||
|
let
|
||||||
|
pkgs = import inputs.nixpkgs {
|
||||||
|
localSystem = system;
|
||||||
|
overlays = [
|
||||||
|
(final: prev: {
|
||||||
|
bluespec-docs = prev.callPackage (
|
||||||
|
{
|
||||||
|
stdenv,
|
||||||
|
zola,
|
||||||
|
git,
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation ({
|
||||||
|
pname = "bluespec-docs";
|
||||||
|
version = "0.1.0";
|
||||||
|
src = inputs.self;
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
zola
|
||||||
|
git
|
||||||
|
];
|
||||||
|
buildPhase = ''
|
||||||
|
zola build
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out
|
||||||
|
cp -r public $out
|
||||||
|
'';
|
||||||
|
})
|
||||||
|
) { };
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
packages = {
|
||||||
|
default = inputs.self.packages."${system}".bluespec-docs;
|
||||||
|
bluespec-docs = pkgs.bluespec-docs;
|
||||||
|
};
|
||||||
|
|
||||||
|
devShells.default =
|
||||||
|
with pkgs;
|
||||||
|
mkShell {
|
||||||
|
inputsFrom = [ bluespec-docs ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
13
theme.toml
13
theme.toml
|
@ -1,13 +0,0 @@
|
||||||
name = "book"
|
|
||||||
description = "A book theme inspired from GitBook/mdBook"
|
|
||||||
license = "MIT"
|
|
||||||
homepage = "https://github.com/getzola/book"
|
|
||||||
min_version = "0.17.0"
|
|
||||||
demo = "https://getzola.github.io/book/"
|
|
||||||
|
|
||||||
[extra]
|
|
||||||
book_number_chapters = true
|
|
||||||
|
|
||||||
[author]
|
|
||||||
name = "Vincent Prouillet"
|
|
||||||
homepage = "https://www.vincentprouillet.com"
|
|
Loading…
Reference in a new issue