Skip to content

Commit 88da951

Browse files
committed
fix book lint generation
1 parent 5aea11d commit 88da951

File tree

11 files changed

+16
-9
lines changed

11 files changed

+16
-9
lines changed

book-gen/src/lints.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ use mdbook::book::Chapter;
1515
pub fn run(chapter: &mut Chapter) {
1616
for item in &mut chapter.sub_items {
1717
if let mdbook::BookItem::Chapter(chapter) = item {
18+
eprintln!("Processing chapter: {}", chapter.name);
1819
if chapter.name == "Config" {
1920
config(chapter);
2021
}

book-gen/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn main() {
1414

1515
for section in &mut book.sections {
1616
if let mdbook::BookItem::Chapter(chapter) = section {
17-
if chapter.name == "Analysis" {
17+
if chapter.name == "Lints" {
1818
lints::run(chapter);
1919
} else if chapter.name == "Commands" {
2020
commands::run(chapter);

book/SUMMARY.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@
5555

5656
# Reference
5757

58-
- [Lints](analysis/index.md)
59-
- [Preprocessor](analysis/preprocessor.md)
60-
- [Config](analysis/config.md)
61-
- [SQF](analysis/sqf.md)
62-
- [Stringtables](analysis/stringtables.md)
58+
- [Lints](lints/index.md)
59+
- [Preprocessor](lints/preprocessor.md)
60+
- [Config](lints/config.md)
61+
- [SQF](lints/sqf.md)
62+
- [Stringtables](lints/stringtables.md)
6363

6464
<!--
6565
# Modding Guide

book/analysis/config.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

book/analysis/sqf.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

book/analysis/stringtables.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

book/lints/config.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Config
2+
3+
This file will be generated, do not edit it manually
File renamed without changes.
File renamed without changes.

book/lints/sqf.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SQF
2+
3+
This file will be generated, do not edit it manually

0 commit comments

Comments
 (0)