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

Commit

Permalink
Update nix-shell to use same versions as netlify:
Browse files Browse the repository at this point in the history
Fix nav by copying from:
https://github.com/squidfunk/mkdocs-material/blob/master/src/templates/partials/nav.html
The latest version of the Material theme seems
to have broken our override. Netlify appears to have
installed a newer version.

Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
  • Loading branch information
jacobweinstock committed Feb 5, 2024
1 parent be658d6 commit 66d626f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
1 change: 0 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ Need a little help getting started? We're here!
Look for the [#tinkerbell] channel.
- Submit an issue on [Github].


[boots]: services/boots.md
[pbnj]: services/pbnj.md
[hook]: hook.md
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
site_name: Tinkerbell Docs
site_url: https://docs.tinkerbell.org
site_description: Designed for scalable provisioning of physical hardware, Tinkerbell is both open-source and cloud native. Contributed by Equinix Metal.
# site_image: https://tinkerbell.org/images/social/tinkerbell-social-image.png
site_image: https://tinkerbell.org/images/social/tinkerbell-social-image.png
repo_url: https://github.com/tinkerbell/tinkerbell-docs
edit_uri: "edit/main/docs/"

Expand Down
7 changes: 5 additions & 2 deletions overrides/partials/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@
<div class="md-nav__source">{% include "partials/source.html" %}</div>
{% endif %}
<!-- Render item list -->
{% import "partials/nav-item.html" as item with context %}
<ul class="md-nav__list" data-md-scrollfix>
{% for nav_item in nav %} {% set path = "nav-" + loop.index | string %} {%
set level = 1 %} {% include "partials/nav-item.html" %} {% endfor %}
{% for nav_item in nav %}
{% set path = "__nav_" ~ loop.index %}
{{ item.render(nav_item, path, 1) }}
{% endfor %}
</ul>
</nav>
10 changes: 6 additions & 4 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ let _pkgs = import <nixpkgs> { };
in { pkgs ? import (_pkgs.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
#branch@date: 21.11@2021-12-02
rev = "21.11";
sha256 = "sha256-AjhmbT4UBlJWqxY0ea8a6GU2C2HdKUREkG43oRr3TZg=";
#branch@date: 23.11@2023-11-29
rev = "23.11";
sha256 = "1ndiv385w1qyb3b18vw13991fzb9wg4cl21wglk89grsfsnra41k";
}) { } }:

with pkgs;

mkShell { buildInputs = [ nodePackages.prettier python3Packages.poetry ]; }
mkShell {
buildInputs = [ nodePackages.prettier pkgs.poetry pkgs.python38];
}

0 comments on commit 66d626f

Please sign in to comment.