An alternative… still not ideal. But maybe easier to keep track of the “internal” docs.
To build on @Sid’s suggestion, we can use an environment-specific configuration combined with a directory mount.
content structure
content/
├── posts/
│ ├── foo/
│ │ ├── foo-1.md
│ │ └── foo-2.md
│ ├── post-2/
│ │ └── index.md
│ ├── _index.md
│ └── post-1.md
└── _index.md
content-internal/
└── posts/
├── foo/
│ └── _index.md
├── post-4/
│ └── index.md
└── post-3.md
site configuration
config/
├── _default/
│ └── config.toml
└── development/
└── config.toml
config/development/config.toml
[[module.mounts]]
source = 'content'
target = 'content'
[[module.mounts]]
source = 'content-internal'
target = 'content'
The content-internal directory will be included when running hugo server
or hugo -e development
.