Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' of github.com:nix-community/docnix
Browse files Browse the repository at this point in the history
  • Loading branch information
hsjobeki committed Nov 3, 2023
2 parents 85ab25b + 00eb47a commit 2db8a0a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 24 deletions.
26 changes: 11 additions & 15 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 10 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@
# a POC in nix for docstrings
nix.url = "github:hsjobeki/nix/?ref=feat/doc-comments";

# A nice unit testing framework forked from @adisbladis
nix-unit.url = "github:hsjobeki/nix-unit/fix/stuff";
# A nice unit testing framework
nix-unit.url = "github:nix-community/nix-unit";
nix-unit.inputs.nixpkgs.follows = "nixpkgs";
nix-unit.inputs.flake-parts.follows = "flake-parts";
# path the custom nix version into it. So we can use it for testing
nix-unit.inputs.nix.follows = "nix";

dream2nix.url = "github:nix-community/dream2nix";
crane = {
url = "github:ipetkov/crane";
Expand Down Expand Up @@ -50,9 +49,9 @@
}: let
##### SITE / URL Settings ################
# e.g. https://nix-community.github.io
# Used to generate a 'Sitemap'.
# This is an XML file that outlines all of the pages, videos, and files on the site.
# Search engines like Google read this file to crawl the site more efficiently.
# Used to generate a 'Sitemap'.
# This is an XML file that outlines all of the pages, videos, and files on the site.
# Search engines like Google read this file to crawl the site more efficiently.
# See Google’s own advice on sitemaps to learn more.
siteUrl = "https://nix-community.github.io";
prefix = "docnix";
Expand Down Expand Up @@ -122,7 +121,7 @@
packageSets.nixpkgs = pkgs;
specialArgs = {
md-docs = self'.packages.markdown;

PREFIX = prefix;
SITE = siteUrl;
};
Expand All @@ -134,7 +133,9 @@
packages = [
inputs'.nixpkgs.legacyPackages.nodejs_20
inputs'.nix.packages.nix-clangStdenv
inputs'.nix-unit.packages.nix-unit
(inputs'.nix-unit.packages.nix-unit.override {
nix = inputs'.nix.packages.nix-clangStdenv;
})
];
shellHook = ''
rm -rf ./json-to-md/data.json
Expand Down

0 comments on commit 2db8a0a

Please sign in to comment.