Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<p align="right">
<a href="https://dendritic.oeiuwq.com/sponsor"><img src="https://img.shields.io/badge/sponsor-vic-white?logo=githubsponsors&logoColor=white&labelColor=%23FF0000" alt="Sponsor Vic"/>
<a href="https://dendritic.oeiuwq.com/sponsor"><img src="https://img.shields.io/badge/sponsor-denful-white?logo=githubsponsors&logoColor=white&labelColor=%23FF0000" alt="Sponsor Vic"/>
</a>
<a href="https://dendritic.oeiuwq.com"> <img src="https://img.shields.io/badge/Dendritic-Nix-informational?logo=nixos&logoColor=white" alt="Dendritic Nix"/> </a>
<a href="LICENSE"> <img src="https://img.shields.io/github/license/vic/import-tree" alt="License"/> </a>
<a href="https://github.com/vic/import-tree/actions">
<img src="https://github.com/vic/import-tree/actions/workflows/test.yml/badge.svg" alt="CI Status"/> </a>
<a href="LICENSE"> <img src="https://img.shields.io/github/license/denful/import-tree" alt="License"/> </a>
<a href="https://github.com/denful/import-tree/actions">
<img src="https://github.com/denful/import-tree/actions/workflows/test.yml/badge.svg" alt="CI Status"/> </a>
</p>

> `import-tree` and [vic](https://bsky.app/profile/oeiuwq.bsky.social)'s [dendritic libs](https://dendritic.oeiuwq.com) made for you with Love++ and AI--. If you like my work, consider [sponsoring](https://dendritic.oeiuwq.com/sponsor)
> `import-tree` and [denful](https://bsky.app/profile/oeiuwq.bsky.social)'s [dendritic libs](https://dendritic.oeiuwq.com) made for you with Love++ and AI--. If you like my work, consider [sponsoring](https://dendritic.oeiuwq.com/sponsor)

# 🌲🌴 import-tree 🎄🌳

Expand All @@ -21,21 +21,21 @@
🌵 Chain `.filter`, `.match`, `.map` for precise file selection.\
🎄 Extensible: `.addAPI` to create domain-specific instances.\
🌿 Built to enable the [Dendritic Pattern](https://github.com/mightyiam/dendritic) on both stable/unstable Nix.\
🌱 [Growing](https://github.com/search?q=language%3ANix+import-tree&type=code) [community](https://vic.github.io/dendrix/Dendrix-Trees.html) [adoption](https://github.com/vic/flake-file)
🌱 [Growing](https://github.com/search?q=language%3ANix+import-tree&type=code) [community](https://denful.github.io/dendrix/Dendrix-Trees.html) [adoption](https://github.com/denful/flake-file)

## Quick Start

The following examples show how to import all module files.
By default, paths having `/_` are ignored. See API documentation for advanced usage.

> Related projects: [vic/flake-file](https://github.com/vic/flake-file), [vic/with-inputs](https://github.com/vic/with-inputs)
> Related projects: [denful/flake-file](https://github.com/denful/flake-file), [denful/with-inputs](https://github.com/denful/with-inputs)

### Dendritic flake-parts

```nix
# flake.nix
{
inputs.import-tree.url = "github:vic/import-tree";
inputs.import-tree.url = "github:denful/import-tree";
inputs.flake-parts.url = "github:hercules-ci/flake-parts";

outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; }
Expand All @@ -48,7 +48,7 @@ By default, paths having `/_` are ignored. See API documentation for advanced us
```nix
# flake.nix
{
inputs.import-tree.url = "github:vic/import-tree";
inputs.import-tree.url = "github:denful/import-tree";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";

outputs = inputs:
Expand All @@ -61,7 +61,7 @@ By default, paths having `/_` are ignored. See API documentation for advanced us

### Dendritic Nix (non-flakes, stable Nix)

This example uses [with-inputs](https://github.com/vic/with-inputs) to provide flake-file inputs from [npins](https://github.com/andir/npins) sources.
This example uses [with-inputs](https://github.com/denful/with-inputs) to provide flake-file inputs from [npins](https://github.com/andir/npins) sources.

```nix
# default.nix
Expand All @@ -83,8 +83,8 @@ with-inputs outputs

## Testing

`import-tree` uses [`checkmate`](https://github.com/vic/checkmate) for testing:
`import-tree` uses [`checkmate`](https://github.com/denful/checkmate) for testing:

```sh
nix flake check github:vic/checkmate --override-input target path:.
nix flake check github:denful/checkmate --override-input target path:.
```
4 changes: 2 additions & 2 deletions checkmate/modules/tests.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# If formatting fails, run
# nix run github:vic/checkmate#checkmate-treefmt
# nix run github:denful/checkmate#checkmate-treefmt
#
{ inputs, lib, ... }:
let
# since we are tested by github:vic/checkmate
# since we are tested by github:denful/checkmate
it = inputs.target;
lit = it.withLib lib;
in
Expand Down
2 changes: 1 addition & 1 deletion docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default defineConfig({
}),
],
editLink: {
baseUrl: 'https://github.com/vic/import-tree/edit/main/docs/',
baseUrl: 'https://github.com/denful/import-tree/edit/main/docs/',
},
customCss: [
'./src/styles/custom.css'
Expand Down
16 changes: 8 additions & 8 deletions docs/src/components/Ad.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { LinkButton, Icon } from '@astrojs/starlight/components';
<div class="content">
<div class="header">
<Icon name="heart" size="2.5rem" class="heart-icon" />
<h4><code>vic/import-tree</code>?</h4>
<h4><code>denful/import-tree</code>?</h4>
</div>

<LinkButton href="https://dendritic.oeiuwq.com/sponsor" variant="primary">Become a Sponsor</LinkButton>
Expand All @@ -16,15 +16,15 @@ import { LinkButton, Icon } from '@astrojs/starlight/components';
</p>

<ul class="ecosystem">
<li><a href="https://github.com/vic/flake-aspects">flake-aspects</a></li>
<li><a href="https://github.com/vic/flake-file">flake-file</a></li>
<li><a href="https://github.com/vic/with-inputs">with-inputs</a></li>
<li><a href="https://github.com/vic/den">den</a></li>
<li><a href="https://github.com/vic/denful">denful</a></li>
<li><a href="https://github.com/vic/dendrix">dendrix</a></li>
<li><a href="https://github.com/denful/flake-aspects">flake-aspects</a></li>
<li><a href="https://github.com/denful/flake-file">flake-file</a></li>
<li><a href="https://github.com/denful/with-inputs">with-inputs</a></li>
<li><a href="https://github.com/denful/den">den</a></li>
<li><a href="https://github.com/denful/denful">denful</a></li>
<li><a href="https://github.com/denful/dendrix">dendrix</a></li>
</ul>

<LinkButton icon="github" href="https://github.com/vic?tab=repositories" variant="minimal"><code>More <strong>@vic</strong> OpenSource</code></LinkButton>
<LinkButton icon="github" href="https://github.com/denful?tab=repositories" variant="minimal"><code>More <strong>@denful</strong> OpenSource</code></LinkButton>
</div>
</section>

Expand Down
8 changes: 4 additions & 4 deletions docs/src/components/SocialIcons.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import Default from '@astrojs/starlight/components/SocialIcons.astro';

---

<a href="https://github.com/vic/import-tree/releases"><img src="https://img.shields.io/github/v/release/vic/import-tree?logo=github&color=white"/></a>
<a href="https://github.com/denful/import-tree/releases"><img src="https://img.shields.io/github/v/release/denful/import-tree?logo=github&color=white"/></a>

<a href="https://deepwiki.com/vic/import-tree"><img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki"></a>
<a href="https://deepwiki.com/denful/import-tree"><img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki"></a>

<a href="https://dendritic.oeiuwq.com"> <img src="https://img.shields.io/badge/@vic-Dendritic libs-informational?logo=nixos&logoColor=white" alt="Vic Dendritic Nix"/> </a>
<a href="https://dendritic.oeiuwq.com"> <img src="https://img.shields.io/badge/@denful-Dendritic libs-informational?logo=nixos&logoColor=white" alt="Vic Dendritic Nix"/> </a>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change these dendritic.oeiuwq.com -> denful.dev when talking about our Dendritic libs.


<a href="https://dendritic.oeiuwq.com/sponsor"><img src="https://img.shields.io/badge/Sponsor-@vic-white?logo=githubsponsors&logoColor=white" alt="Sponsor Den"/>
<a href="https://dendritic.oeiuwq.com/sponsor"><img src="https://img.shields.io/badge/Sponsor-@denful-white?logo=githubsponsors&logoColor=white" alt="Sponsor Den"/>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://denful.dev/sponsor should work now.

</a>

<Default />
12 changes: 6 additions & 6 deletions docs/src/content/docs/community.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ description: Get help, share your work, and find real-world import-tree usage.

## Get Support

- [GitHub Issues](https://github.com/vic/import-tree/issues) — report bugs, request features
- [GitHub Discussions](https://github.com/vic/import-tree/discussions) — ask questions, share ideas
- [GitHub Issues](https://github.com/denful/import-tree/issues) — report bugs, request features
- [GitHub Discussions](https://github.com/denful/import-tree/discussions) — ask questions, share ideas

Everyone is welcome. Be kind and respectful.

## Real-World Usage

- [GitHub Code Search](https://github.com/search?q=language%3ANix+import-tree&type=code) — find projects using import-tree
- [Dendrix Trees](https://vic.github.io/dendrix/Dendrix-Trees.html) — community index of dendritic setups
- [Dendrix Trees](https://denful.github.io/dendrix/Dendrix-Trees.html) — community index of dendritic setups

## Ecosystem

- [Den](https://github.com/vic/den) — context-aware dendritic Nix framework
- [flake-aspects](https://github.com/vic/flake-aspects) — aspect composition library
- [denful](https://github.com/vic/denful) — community aspect distribution
- [Den](https://github.com/denful/den) — context-aware dendritic Nix framework
- [flake-aspects](https://github.com/denful/flake-aspects) — aspect composition library
- [denful](https://github.com/denful/denful) — community aspect distribution
- [Dendrix](https://dendrix.oeiuwq.com/) — index of dendritic aspects
- [Dendritic Design](https://github.com/mightyiam/dendritic) — the pattern that inspired this ecosystem
8 changes: 4 additions & 4 deletions docs/src/content/docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ All contributions are welcome. PRs are checked by CI.

## Run Tests

`import-tree` uses [checkmate](https://github.com/vic/checkmate) for testing:
`import-tree` uses [checkmate](https://github.com/denful/checkmate) for testing:

```sh
nix flake check github:vic/checkmate --override-input target path:.
nix flake check github:denful/checkmate --override-input target path:.
```

## Format Code

```sh
nix run github:vic/checkmate#fmt
nix run github:denful/checkmate#fmt
```

## Bug Reports

Open an [issue](https://github.com/vic/import-tree/issues) with a minimal reproduction.
Open an [issue](https://github.com/denful/import-tree/issues) with a minimal reproduction.

If possible, include a failing test case — the test suite is in `checkmate/modules/tests.nix` and the test tree fixtures are in `checkmate/tree/`.

Expand Down
6 changes: 3 additions & 3 deletions docs/src/content/docs/getting-started/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Add `import-tree` to your flake inputs:

```nix
{
inputs.import-tree.url = "github:vic/import-tree";
inputs.import-tree.url = "github:denful/import-tree";
}
```

Expand All @@ -26,7 +26,7 @@ Import directly from a pinned source:
```nix
let
import-tree = import (builtins.fetchTarball {
url = "https://github.com/vic/import-tree/archive/main.tar.gz";
url = "https://github.com/denful/import-tree/archive/main.tar.gz";
});
in
# use import-tree
Expand All @@ -51,7 +51,7 @@ The most common pattern — import all modules from a directory as flake-parts m

```nix
{
inputs.import-tree.url = "github:vic/import-tree";
inputs.import-tree.url = "github:denful/import-tree";
inputs.flake-parts.url = "github:hercules-ci/flake-parts";

outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; }
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/guides/dendritic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ With flake-parts, each file is a flake-parts module:
```nix
# flake.nix
{
inputs.import-tree.url = "github:vic/import-tree";
inputs.import-tree.url = "github:denful/import-tree";
inputs.flake-parts.url = "github:hercules-ci/flake-parts";

outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; }
Expand Down
4 changes: 2 additions & 2 deletions docs/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ hero:
link: /motivation/
variant: minimal
- text: Source Code
link: https://github.com/vic/import-tree
link: https://github.com/denful/import-tree
icon: github
variant: secondary
---
Expand All @@ -32,7 +32,7 @@ import { Card, CardGrid } from '@astrojs/starlight/components';
```nix
# In your flake.nix — import every .nix file under ./modules
{
inputs.import-tree.url = "github:vic/import-tree";
inputs.import-tree.url = "github:denful/import-tree";
inputs.flake-parts.url = "github:hercules-ci/flake-parts";

outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; }
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/reference/api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Aside } from '@astrojs/starlight/components';

**As a flake input:**
```nix
inputs.import-tree.url = "github:vic/import-tree";
inputs.import-tree.url = "github:denful/import-tree";
# Then use: inputs.import-tree
```

Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/reference/examples.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: Practical examples of import-tree usage patterns.
```nix
# flake.nix
{
inputs.import-tree.url = "github:vic/import-tree";
inputs.import-tree.url = "github:denful/import-tree";
inputs.flake-parts.url = "github:hercules-ci/flake-parts";

outputs = inputs:
Expand Down
4 changes: 2 additions & 2 deletions docs/src/content/docs/sponsor.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ title: Sponsor
description: Support import-tree development.
---

`import-tree` and [vic](https://bsky.app/profile/oeiuwq.bsky.social)'s [dendritic libs](https://vic.github.io/dendrix/Dendritic-Ecosystem.html#vics-dendritic-libraries) are made with love.
`import-tree` and [vic](https://bsky.app/profile/oeiuwq.bsky.social)'s [dendritic libs](https://denful.github.io/dendrix/Dendritic-Ecosystem.html#vics-dendritic-libraries) are made with love.

If you find import-tree useful, consider [sponsoring](https://github.com/sponsors/vic).
If you find import-tree useful, consider [sponsoring](https://github.com/sponsors/denful).