Zig documention

I made a zig documention beacuse I create documentions to strength my understanding of what I have learned, I’m sharing this if anyone wants to use it.

learnzig.netlify.app

1 Like

Its great that you did that.

Unfortunately, though this website doesnt work without javascript.

1 Like

Thanks for that info! but my website does not use any javascript, that might be an issue on netlify.

It does, at least for the the root page:

<script>
    const pages = [
      { title: "Introduction", filename: "pages/introduction.html" },
      { title: "About This Tutorial", filename: "pages/about_this_tutorial.html" },
      { title: "Setting Up", filename: "pages/setting_up.html" },
      {title : "Starting with zig", filename: "pages/starting_with_zig.html" },
            {title : "Variables", filename: "pages/variables.html" }
    ];

    const navBar = document.getElementById("tutorial-nav");

    pages.forEach(page => {
      const link = document.createElement("a");
      link.href = page.filename;
      link.textContent = page.title;

      if (window.location.pathname.endsWith(page.filename)) {
        link.classList.add("active");
      }

      navBar.appendChild(link);

    navBar.appendChild(document.createElement("br"));
    });
</script>

But maybe you could make this just be some HTML links and no JS stuff?

Oh I forgot about that haha sorry! I’ll try to make it less java script dependend and more clear.