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

Commit

Permalink
add edit page & link to rfc
Browse files Browse the repository at this point in the history
  • Loading branch information
hsjobeki committed Sep 25, 2023
1 parent 7dba4b8 commit 645eac8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
11 changes: 10 additions & 1 deletion nixpkgs-docs-example/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,19 @@ export default defineConfig({
src: "./src/assets/nix-logo.svg",
},
tableOfContents: { minHeadingLevel: 1, maxHeadingLevel: 4 },

social: {
github: "https://github.com/nixos/nixpkgs",
github: "https://github.com/hsjobeki/nix-doc-comments",
},
editLink: {
baseUrl:
"https://github.com/hsjobeki/nix-doc-comments/nixpkgs-docs-example/edit/main/docs/",
},
sidebar: [
{
label: "Home",
link: "/",
},
{
label: "Reference",
autogenerate: { directory: "reference" },
Expand Down
15 changes: 13 additions & 2 deletions nixpkgs-docs-example/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,25 @@ title: API Documentation for nix, nixpkgs and nixos
description: Explore our documentation
template: splash
hero:
tagline: Nix is awesome!
tagline: Support RFC-145 - Because Automatic Documentation is awesome!
image:
file: ../../assets/nixoscolorful.svg
actions:
- text: To the docs
link: nix-doc-comments/reference/add
link: reference/add
icon: right-arrow
variant: primary
- text: To the RFC145
link: https://github.com/NixOS/rfcs/pull/145
icon: right-arrow
variant: secondary
sidebar:
hidden: false
label: Home
order: 0
banner:
content: |
Generate documentation for your nix project!
---

import { LinkCard, CardGrid } from "@astrojs/starlight/components";
Expand Down

0 comments on commit 645eac8

Please sign in to comment.