From c706a02c2b7baa029142108f8d027109819b41c1 Mon Sep 17 00:00:00 2001 From: Lionel Sambuc Date: Thu, 14 Mar 2019 13:26:43 +0100 Subject: [PATCH] Reduce repetition, rename to match generated filenames --- docs/README.md | 2 +- docs/{chapter1 => chapter-1}/README.md | 6 ++---- docs/{chapter1/section2.md => chapter-1/section-1.md} | 6 ++---- docs/{chapter1/section1.md => chapter-1/section-2.md} | 4 +--- docs/{chapter2 => chapter-2}/README.md | 6 ++---- docs/{chapter2/section1.md => chapter-2/section-1.md} | 4 +--- docs/{chapter2/section2.md => chapter-2/section-2.md} | 4 +--- .../sub_chapter1 => chapter-2/sub-chapter-1}/README.md | 5 ++--- .../sub_chapter1 => chapter-2/sub-chapter-1}/section1.md | 4 +--- .../sub_chapter1 => chapter-2/sub-chapter-1}/section2.md | 5 +---- docs/{section1.md => section-1.md} | 0 docs/{section2.md => section-2.md} | 0 12 files changed, 14 insertions(+), 32 deletions(-) rename docs/{chapter1 => chapter-1}/README.md (97%) rename docs/{chapter1/section2.md => chapter-1/section-1.md} (97%) rename docs/{chapter1/section1.md => chapter-1/section-2.md} (98%) rename docs/{chapter2 => chapter-2}/README.md (97%) rename docs/{chapter2/section1.md => chapter-2/section-1.md} (98%) rename docs/{chapter2/section2.md => chapter-2/section-2.md} (98%) rename docs/{chapter2/sub_chapter1 => chapter-2/sub-chapter-1}/README.md (97%) rename docs/{chapter2/sub_chapter1 => chapter-2/sub-chapter-1}/section1.md (98%) rename docs/{chapter2/sub_chapter1 => chapter-2/sub-chapter-1}/section2.md (97%) rename docs/{section1.md => section-1.md} (100%) rename docs/{section2.md => section-2.md} (100%) diff --git a/docs/README.md b/docs/README.md index bfa72d3..e9ca828 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,6 +1,6 @@ --- nav_order: 1 -permalink: /docs +permalink: / --- # Home {: .no_toc } diff --git a/docs/chapter1/README.md b/docs/chapter-1/README.md similarity index 97% rename from docs/chapter1/README.md rename to docs/chapter-1/README.md index 19b780c..5009be6 100644 --- a/docs/chapter1/README.md +++ b/docs/chapter-1/README.md @@ -1,11 +1,9 @@ --- -layout: default -title: Chapter 1 nav_order: 3 has_children: true -permalink: /docs/chapter-1 +permalink: /chapter-1 --- -# A Page +# Chapter 1 {: .no_toc } ## Table of contents diff --git a/docs/chapter1/section2.md b/docs/chapter-1/section-1.md similarity index 97% rename from docs/chapter1/section2.md rename to docs/chapter-1/section-1.md index 6aba9a7..fad1c24 100644 --- a/docs/chapter1/section2.md +++ b/docs/chapter-1/section-1.md @@ -1,10 +1,8 @@ --- -layout: default -title: Section 2 -nav_order: 3 +nav_order: 1 parent: Chapter 1 --- -# A Page +# Section 1 {: .no_toc } ## Table of contents diff --git a/docs/chapter1/section1.md b/docs/chapter-1/section-2.md similarity index 98% rename from docs/chapter1/section1.md rename to docs/chapter-1/section-2.md index c61aa8e..66df93b 100644 --- a/docs/chapter1/section1.md +++ b/docs/chapter-1/section-2.md @@ -1,10 +1,8 @@ --- -layout: default -title: Section 1 nav_order: 2 parent: Chapter 1 --- -# A Page +# Section 2 {: .no_toc } ## Table of contents diff --git a/docs/chapter2/README.md b/docs/chapter-2/README.md similarity index 97% rename from docs/chapter2/README.md rename to docs/chapter-2/README.md index c733d03..4261e71 100644 --- a/docs/chapter2/README.md +++ b/docs/chapter-2/README.md @@ -1,11 +1,9 @@ --- -layout: default -title: Chapter 2 nav_order: 5 has_children: true -permalink: /docs/chapter-2 +permalink: /chapter-2 --- -# A Page +# Chapter 2 {: .no_toc } ## Table of contents diff --git a/docs/chapter2/section1.md b/docs/chapter-2/section-1.md similarity index 98% rename from docs/chapter2/section1.md rename to docs/chapter-2/section-1.md index fb9869c..7d5f98c 100644 --- a/docs/chapter2/section1.md +++ b/docs/chapter-2/section-1.md @@ -1,10 +1,8 @@ --- -layout: default -title: Section 1 nav_order: 1 parent: Chapter 2 --- -# A Page +# Section 1 {: .no_toc } ## Table of contents diff --git a/docs/chapter2/section2.md b/docs/chapter-2/section-2.md similarity index 98% rename from docs/chapter2/section2.md rename to docs/chapter-2/section-2.md index 761dbb9..f0ae802 100644 --- a/docs/chapter2/section2.md +++ b/docs/chapter-2/section-2.md @@ -1,10 +1,8 @@ --- -layout: default -title: Section 2 nav_order: 2 parent: Chapter 2 --- -# A Page +# Section 2 {: .no_toc } ## Table of contents diff --git a/docs/chapter2/sub_chapter1/README.md b/docs/chapter-2/sub-chapter-1/README.md similarity index 97% rename from docs/chapter2/sub_chapter1/README.md rename to docs/chapter-2/sub-chapter-1/README.md index 395a645..a1f8a93 100644 --- a/docs/chapter2/sub_chapter1/README.md +++ b/docs/chapter-2/sub-chapter-1/README.md @@ -1,11 +1,10 @@ --- -layout: default -title: Sub Chapter 1 nav_order: 3 has_children: true parent: Chapter 2 +permalink: /chapter-2/sub-chapter-1 --- -# A Page +# Sub Chapter 1 {: .no_toc } ## Table of contents diff --git a/docs/chapter2/sub_chapter1/section1.md b/docs/chapter-2/sub-chapter-1/section1.md similarity index 98% rename from docs/chapter2/sub_chapter1/section1.md rename to docs/chapter-2/sub-chapter-1/section1.md index f16bb83..b660cc2 100644 --- a/docs/chapter2/sub_chapter1/section1.md +++ b/docs/chapter-2/sub-chapter-1/section1.md @@ -1,11 +1,9 @@ --- -layout: default -title: Section 1 nav_order: 1 parent: Sub Chapter 1 grandparent: Chapter 2 --- -# A Page +# Section 1 {: .no_toc } ## Table of contents diff --git a/docs/chapter2/sub_chapter1/section2.md b/docs/chapter-2/sub-chapter-1/section2.md similarity index 97% rename from docs/chapter2/sub_chapter1/section2.md rename to docs/chapter-2/sub-chapter-1/section2.md index c987428..fb39448 100644 --- a/docs/chapter2/sub_chapter1/section2.md +++ b/docs/chapter-2/sub-chapter-1/section2.md @@ -1,12 +1,9 @@ --- -layout: default -title: Section 2 nav_order: 2 parent: Sub Chapter 1 grandparent: Chapter 2 -permalink: /docs/chapter-2 --- -# A Page +# Section 2 {: .no_toc } ## Table of contents diff --git a/docs/section1.md b/docs/section-1.md similarity index 100% rename from docs/section1.md rename to docs/section-1.md diff --git a/docs/section2.md b/docs/section-2.md similarity index 100% rename from docs/section2.md rename to docs/section-2.md