You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c1997f8
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: AGENTS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,7 +126,7 @@ When adding or changing user-visible behavior:
126
126
The only docs tree to edit by hand is `docs/docs/`.
127
127
128
128
-**User guides**: `docs/docs/` (Docusaurus, live preview via `cd docs && npm run start`)
129
-
-**Agent index**: `docs/static/llms.txt`is generated from `docs/sidebars.js` and each page's front matter (`node scripts/generate_llms_txt.js`). It is published at <https://martenframework.com/docs/llms.txt> and lists the guides for the version under development (`/docs/next/`). Regenerate it when a guide is added, renamed, removed, or its description changes. `make qa` checks that the committed file matches.
129
+
-**Agent guides**: `docs/static/llms.txt`and `docs/static/llms-full.txt` are generated from `docs/sidebars.js` and the guide pages (`node scripts/generate_llms_txt.js`). `llms.txt` is the index. `llms-full.txt` is the guide text. They are published at <https://martenframework.com/docs/llms.txt> and <https://martenframework.com/docs/llms-full.txt>for the version under development (`/docs/next/`). Regenerate them when a guide is added, renamed, removed, or its content changes. `make qa` checks that the committed files match.
130
130
-**API reference**: generated with `make docs_api` → `docs/static/api/dev/`
131
131
-**Snapshots**: `docs/versioned_docs/` and `docs/static/api/0.5`, `docs/static/api/0.6`, and `docs/static/api/0.7` are published copies. Leave them unchanged.
Copy file name to clipboardExpand all lines: docs/docs/the-marten-project/release-notes/1.0.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@ _Under development._
28
28
29
29
* The [`serve`](../../development/reference/management-commands.md#serve) management command now displays how long project compilation took after each successful build.
30
30
* The [`new`](../../development/reference/management-commands.md#new) command now writes an `AGENTS.md` file when creating a project. The file records the Marten version, links to the matching guides and API, and describes the project layout, generators, requires, migrations, CSRF, and specs, so coding agents can work in the generated project. Projects created with `--edge` link to the in-development guides.
31
+
* The in-development guides are published as a single file at [`/docs/llms-full.txt`](https://martenframework.com/docs/llms-full.txt), next to the guide index at [`/docs/llms.txt`](https://martenframework.com/docs/llms.txt).
31
32
* The [`new`](../../development/reference/management-commands.md#new) command prints its usage and exits with status 1 when `type` or `name` is omitted and stdin is not a terminal, instead of waiting for prompts. Passing both arguments still runs without prompts.
Copy file name to clipboardExpand all lines: docs/static/llms.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
> Marten is a batteries-included web framework for Crystal. This file indexes the guides for the version under development.
4
4
5
-
These URLs are the in-development guides at https://martenframework.com/docs/next/. The latest stable guides are at https://martenframework.com/docs/. The generated API reference for this version is at https://martenframework.com/docs/api/dev/.
5
+
The full text of these guides is at https://martenframework.com/docs/llms-full.txt. These URLs are the in-development guides at https://martenframework.com/docs/next/. The latest stable guides are at https://martenframework.com/docs/. The generated API reference for this version is at https://martenframework.com/docs/api/dev/.
"> Marten is a batteries-included web framework for Crystal. This file indexes the guides for the version under development.",
113
241
"",
114
-
"These URLs are the in-development guides at https://martenframework.com/docs/next/. The latest stable guides are at https://martenframework.com/docs/. The generated API reference for this version is at https://martenframework.com/docs/api/dev/.",
242
+
"The full text of these guides is at https://martenframework.com/docs/llms-full.txt. These URLs are the in-development guides at https://martenframework.com/docs/next/. The latest stable guides are at https://martenframework.com/docs/. The generated API reference for this version is at https://martenframework.com/docs/api/dev/.",
115
243
"",
116
244
];
117
245
@@ -131,32 +259,65 @@ function generate() {
131
259
returnlines.join("\n");
132
260
}
133
261
262
+
functiongenerateFull(){
263
+
constsections=[];
264
+
walk(sidebar,null,sections);
265
+
266
+
constlines=[
267
+
"# Marten",
268
+
"",
269
+
"> Marten is a batteries-included web framework for Crystal. This file contains the guides for the version under development.",
270
+
"",
271
+
"The guide index is at https://martenframework.com/docs/llms.txt. These guides are the in-development guides at https://martenframework.com/docs/next/. The latest stable guides are at https://martenframework.com/docs/. The generated API reference for this version is at https://martenframework.com/docs/api/dev/.",
Copy file name to clipboardExpand all lines: src/marten/cli/manage/command/new/templates/project/AGENTS.md.ecr
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
# Marten project guide for coding agents
3
3
4
4
<%-if context.edge -%>
5
-
This project uses Marten <%=Marten::VERSION%> from the development branch. Follow the guides at <https://martenframework.com/docs/next/> and the API reference at <https://martenframework.com/docs/api/dev/index.html>. The guide index is at <https://martenframework.com/docs/llms.txt>.
5
+
This project uses Marten <%=Marten::VERSION%> from the development branch. Follow the guides at <https://martenframework.com/docs/next/> and the API reference at <https://martenframework.com/docs/api/dev/index.html>. The guide index is at <https://martenframework.com/docs/llms.txt>. The full text of those guides is at <https://martenframework.com/docs/llms-full.txt>.
6
6
<%-else-%>
7
7
This project uses Marten <%=Marten::VERSION%>. Follow the guides at <https://martenframework.com/docs/> and the API reference at <https://martenframework.com/docs/api/<%= api_series %>/index.html>. These guide URLs track the latest stable release. The API URL is pinned to <%= api_series %>. When a guide and that API disagree, follow the API.
0 commit comments