docs-site
/docs-site
Tworzy szkielet witryny dokumentacji w Markdown na Eleventy: układ bazowy, pliki danych, workflow wdrożenia na GitHub Pages i konfigurację kopiowania plików.
- Autor
- jikig-ai ↗
- Repozytorium
- soleur ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 27.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 2
- Adresy URL w SKILL.md
- 2
Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
- SKILL.md zawiera komentarze HTML (2). Nie widać ich w podglądzie Markdown, a model je czyta.
Co robi i kiedy
Tworzy szkielet witryny dokumentacji w Markdown na Eleventy: układ bazowy, pliki danych, workflow wdrożenia na GitHub Pages i konfigurację kopiowania plików.
Oryginalny opis (EN)
This skill should be used when scaffolding a Markdown-based Eleventy documentation site: base layout, data files, GitHub Pages deployment workflow, and passthrough copy configuration.
Jak działa
- Prerequisites
- Step 1: Gather Project Info
- Step 2: Install Dependencies
- Step 3: Create Eleventy Config
- Step 4: Create Directory Structure
- Step 5: Data Files (Optional)
- Step 6: GitHub Pages Workflow
- Step 7: Verify
- Notes
Podgląd SKILL.md
---
name: docs-site
description: "This skill should be used when scaffolding a Markdown-based Eleventy documentation site: base layout, data files, GitHub Pages deployment workflow, and passthrough copy configuration."
---
<!-- grok-harness-invoke:start -->
**Grok Build (`plugins/soleur/lib/harness.ts` `invokeSkill()`):** Read this SKILL.md in this process and run it to completion. A one-segment `soleur:<name>` in this document names a SKILL — on Grok Build, Read `plugins/soleur/skills/<name>/SKILL.md` in this process; it is not a nested tool_use. A multi-segment id such as `soleur:<domain>:<name>` names an AGENT: spawn it, never Read it, and on Grok Build spawn_subagent takes the id with its colons replaced by hyphens (`agentIdToGrokSubagentType`). **Claude Code:** Skill tool for a skill (`soleur:<name>`), Task tool with `subagent_type` for an agent. Forbidden is executing a subset, not the Read.
<!-- grok-harness-invoke:end -->
# docs-site Skill
Scaffold a Markdown + Eleventy documentation site with build-time data injection and GitHub Pages deployment.
## Prerequisites
- Node.js 20+
- A `package.json` in the project root (or willingness to create one)
## Step 1: Gather Project Info
Ask the user:
1. **Project name** -- Used in site title, footer, nav logo
2. **Site URL** -- For meta tags, sitemap, og:url (e.g., `https://example.com`)
3. **Author name** -- For blog attribution, structured data, and E-E-A-T signals (e.g., `Jean Deruelle`)
4. **Docs input directory** -- Where docs source files live (e.g., `docs/`)
5. **GitHub repository URL** -- For nav link and deployment
6. **Pages to create** -- Which pages beyond index (e.g., getting-started, changelog, API reference)
## Step 2: Install Dependencies
```bash
npm install --save-dev @11ty/eleventy
```
Add scripts to `package.json`:
```json
{
"scripts": {
"docs:dev": "npx @11ty/eleventy --serve",
"docs:build": "npx @11ty/eleventy"
}
}
```
Ensure `"type": "module"` is set in `package.json` for ESM config.
## Step 3: Create Eleventy Config
Create `eleventy.config.js` at the project root:
```javascript
const INPUT = "<docs-input-dir>";
export default function (eleventyConfig) {
eleventyConfig.addPassthroughCopy({ [`${INPUT}/css`]: "css" });
eleventyConfig.addPassthroughCopy({ [`${INPUT}/images`]: "images" });
// Add more passthrough copies as needed
}
export const config = {
dir: {
input: INPUT,
output: "_site",
includes: "_includes",
data: "_data",
},
markdownTemplateEngine: "njk",
htmlTemplateEngine: "njk",
templateFormats: ["md", "njk"],
};
```
Add `_site/` to `.gitignore`.
## Step 4: Create Directory Structure
```
<docs-input-dir>/
_data/
site.json # Site metadata (name, url, nav)
_includes/
base.njk # Base HTML layout
css/
style.css # Minimal starter CSS
images/ # Static images
index.njk # Landing page
pages/
getting-started.md # First content page
```
### `_data/site.json`
```json
{
"name": "<Project Name>",
"url": "<site-url>",
"author": {
"name": "<Author Name>",
"url": "<site-url>"
},
"nav": [
{ "label": "Get Started", "url": "pages/getting-started.html" }
]
}
```
### `_includes/base.njk`
Create a minimal HTML shell with:
- Head: charset, viewport, description meta, title, CSS link
- Header: logo linking to index.html, nav from `site.nav`
- Main: `{{ content | safe }}`
- Footer: project name, links
Use `page.url` comparison for `aria-current="page"` on nav links.
### `css/style.css`
Provide a minimal starter stylesheet with CSS custom properties for easy theming.
### Content pages
Create `.md` files with YAML frontmatter:
```yaml
---
title: Getting Started
description: "How to get started with <Project Name>"
layout: base.njk
permalink: pages/getting-started.html
---
```
## Step 5: Data Files (Optional)
If the project has components to catalog at build time, create data files in `_data/`:
```javascript
// _data/version.js -- reads version from package.json
import { readFileSync } from "node:fs";
import { resolve } from "node:path";
export default function () {
const pkg = JSON.parse(readFileSync(resolve("package.json"), "utf-8"));
return pkg.version;
}
```
Data files export a function that returns data available in all templates.
## Step 6: GitHub Pages Workflow
Create `.github/workflows/deploy-docs.yml`:
```yaml
name: Deploy Documentation
on:
push:
branches: [main]
paths:
- '<docs-input-dir>/**'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci --ignore-scripts
- run: npx @11ty/eleventy
- uses: actions/configure-pages@v4
- uses: actions/upload-pages-artifact@v3
with:
path: _site
- uses: actions/deploy-pages@v4
```
## Step 7: Verify
```bash
npx @11ty/eleventy --serve
```
Open `http://localhost:8080` and verify:
- All pages render correctly
- CSS loads
- Navigation works with `aria-current="page"`
- Data variables resolve in templates
## Notes
- Nunjucks variables (`{{ var }}`) are NOT resolved inside YAML frontmatter. Use static strings for `description` in frontmatter, and template variables only in the page body.
- Passthrough copy paths in `addPassthroughCopy()` are relative to the project root, NOT the input directory. Use the mapping format: `{ "source/path": "output/path" }`.
- Eleventy v3 uses ESM (`export default`) -- do not use CommonJS (`module.exports`).
Wersje
W bazie nie ma innych skilli o nazwie docs-site.
Migawka bazy z 13.11.2026 · wersja paczki 285f9f14f0e5 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100deploy-docs
Waliduje build dokumentacji w Eleventy, sprawdza wynik i liczbę komponentów oraz przygotowuje wdrożenie na Cloudflare Pages z instrukcją. - 100eleventy-stack
Dostarcza domyślny stos technologiczny 11ty do szybkiego budowania MVP: szkielet strony statycznej z Eleventy i Bun oraz domyślne podejście do szablonów i stylów. - 100release-docs
Aktualizuje metadane dokumentacji wtyczki po zmianie komponentów: opis w plugin.json, liczniki w README i kontrolę buildu Eleventy. - 100create-gh-pages-site
Tworzy działającą stronę na GitHub Pages z zatwierdzonego szablonu (VitePress, Astro, Eleventy, React z Vite, Jekyll), wstawia poprawną ścieżkę bazową i dodaje wdrażanie przez GitHub Actions. - 100static-site-publish
Publikuje nowe strony statycznych serwisów przez commit do repozytorium GitHub, w jednym dozwolonym folderze treści. - 90pb-docs-site
Publikuje dokumentację projektu jako statyczny podręcznik HTML na GitHub Pages: sprawdza włączenie Pages, aktualizuje wiki, wypisuje luki w dokumentacji, buduje stronę i wypycha ją po GO.