Skip to content

Commit 30c8176

Browse files
committed
Upgraded tools and deployment process.
Upgraded mdbook and mdbook-admonish versions used locally and in build/deployment pipeline. Updated various utility GitHub Action in deployment script. Commented out pages in SUMMARY to not make the book appear as full/complete in its final form. Updated mdbook-admonish CSS. Updated setup instructions in README.
1 parent 0d744ba commit 30c8176

File tree

5 files changed

+328
-321
lines changed

5 files changed

+328
-321
lines changed

.github/workflows/mdbook.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,25 @@ jobs:
2929
build:
3030
runs-on: ubuntu-latest
3131
env:
32-
MDBOOK_VERSION: 0.4.35
32+
MDBOOK_VERSION: 0.4.40
3333
steps:
34-
- uses: actions/checkout@v3
34+
- uses: actions/checkout@v4
3535
- name: Install mdBook
3636
run: |
3737
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
3838
rustup update
3939
cargo install --version ${MDBOOK_VERSION} mdbook
4040
- name: Install and Setup Admonish
4141
run: |
42-
cargo install mdbook-admonish --vers "1.13.1" --locked
42+
cargo install mdbook-admonish --vers "1.18.0" --locked
4343
mdbook-admonish install .
4444
- name: Setup Pages
4545
id: pages
46-
uses: actions/configure-pages@v3
46+
uses: actions/configure-pages@v5
4747
- name: Build with mdBook
4848
run: mdbook build
4949
- name: Upload artifact
50-
uses: actions/upload-pages-artifact@v1
50+
uses: actions/upload-pages-artifact@v3
5151
with:
5252
path: ./book
5353

@@ -61,4 +61,4 @@ jobs:
6161
steps:
6262
- name: Deploy to GitHub Pages
6363
id: deployment
64-
uses: actions/deploy-pages@v2
64+
uses: actions/deploy-pages@v4

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This repository contains the source code for "The C++ Programming Language" mdBo
77
To build this book you need [mdBook](https://rust-lang.github.io/mdBook/index.html) a tool for creating books with Markdown. mdBook can be installed using Cargo - Rust's package manager.
88

99
```sh
10-
cargo install mdbook
10+
cargo install mdbook --vers "0.4.40" --locked
1111
```
1212

1313
You can build this book you must clone this repository using Git. You can then build it and even serve it to localhost to view in your browser. The serve command will produce a localhost you can view.

book.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ src = "src"
1010

1111
[preprocessor.admonish]
1212
command = "mdbook-admonish"
13-
assets_version = "3.0.0" # do not edit: managed by `mdbook-admonish install`
13+
assets_version = "3.0.2" # do not edit: managed by `mdbook-admonish install`
1414
after = ["links"]
1515

1616
[output.html]

src/SUMMARY.md

Lines changed: 118 additions & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -21,178 +21,178 @@
2121

2222
## Common Programming Concepts
2323

24-
- [Common Programming Concepts](common-concepts/common-concepts.md)
25-
- [Variables and Mutability](common-concepts/vars-mut.md)
26-
- [Data Types](common-concepts/data-types.md)
27-
- [Functions](common-concepts/functions.md)
28-
- [Comments](common-concepts/comments.md)
29-
- [Control Flow](common-concepts/control-flow.md)
24+
<!-- - [Common Programming Concepts](common-concepts/common-concepts.md) -->
25+
<!-- - [Variables and Mutability](common-concepts/vars-mut.md) -->
26+
<!-- - [Data Types](common-concepts/data-types.md) -->
27+
<!-- - [Functions](common-concepts/functions.md) -->
28+
<!-- - [Comments](common-concepts/comments.md) -->
29+
<!-- - [Control Flow](common-concepts/control-flow.md) -->
3030

3131
## Ownership
3232

33-
- [Ownership](ownership/ownership.md)
34-
- [What is ownership?](ownership/what-is-it.md)
35-
- [References and Moves](ownership/refs-moves.md)
36-
- [Spans](ownership/spans.md) <!-- and std::string_view -->
33+
<!-- - [Ownership](ownership/ownership.md) -->
34+
<!-- - [What is ownership?](ownership/what-is-it.md) -->
35+
<!-- - [References and Moves](ownership/refs-moves.md) -->
36+
<!-- - [Spans](ownership/spans.md) <!-- and std::string_view --> -->
3737

3838
## Containers
3939

40-
- [Containers](containers/containers.md)
41-
- [Storing a Sequence of Items with Vectors](containers/vector.md)
42-
- [Encoding Text with Strings](containers/string.md)
43-
- [Storing Ordered Keys with Associated Values with Maps](containers/map.md)
44-
- [Storing Keys with Associated Values with Unordered Maps](containers/unordered_map.md)
45-
- [Adapting the Interface of Containers](containers/adaptors.md)
46-
- [Storing and Manipulating Individual Bits](containers/bitset.md)
47-
- [Multidimensional Representation of Linear Storage](containers/mdspan.md)
40+
<!-- - [Containers](containers/containers.md) -->
41+
<!-- - [Storing a Sequence of Items with Vectors](containers/vector.md) -->
42+
<!-- - [Encoding Text with Strings](containers/string.md) -->
43+
<!-- - [Storing Ordered Keys with Associated Values with Maps](containers/map.md) -->
44+
<!-- - [Storing Keys with Associated Values with Unordered Maps](containers/unordered_map.md) -->
45+
<!-- - [Adapting the Interface of Containers](containers/adaptors.md) -->
46+
<!-- - [Storing and Manipulating Individual Bits](containers/bitset.md) -->
47+
<!-- - [Multidimensional Representation of Linear Storage](containers/mdspan.md) -->
4848

4949
## Error Handling
5050

51-
- [Error Handling](errors/errors.md)
52-
- [Compile Time Checks](errors/compile-time-checks.md)
53-
- [Exceptions](errors/exceptions.md)
54-
- [Stacktraces and Stack Unwinding](errors/stacktraces.md)
55-
- [Errors as Values](errors/eav.md)
56-
- [Abnormal Termination](errors/abnormal-termination.md)
51+
<!-- - [Error Handling](errors/errors.md) -->
52+
<!-- - [Compile Time Checks](errors/compile-time-checks.md) -->
53+
<!-- - [Exceptions](errors/exceptions.md) -->
54+
<!-- - [Stacktraces and Stack Unwinding](errors/stacktraces.md) -->
55+
<!-- - [Errors as Values](errors/eav.md) -->
56+
<!-- - [Abnormal Termination](errors/abnormal-termination.md) -->
5757

5858
## Custom Types
5959

60-
- [Custom Types](custom-types/custom-types.md)
61-
- [Structuring Related Data](custom-types/structs.md)
62-
- [Member Access](custom-types/member-access.md)
63-
- [Creating and Using Methods on Structures](custom-types/methods.md)
64-
- [Classes](custom-types/classes.md)
65-
- [Access Modifiers](custom-types/access-modifiers.md)
66-
- [Constructors, Destructors and RAII](custom-types/raii.md)
60+
<!-- - [Custom Types](custom-types/custom-types.md) -->
61+
<!-- - [Structuring Related Data](custom-types/structs.md) -->
62+
<!-- - [Member Access](custom-types/member-access.md) -->
63+
<!-- - [Creating and Using Methods on Structures](custom-types/methods.md) -->
64+
<!-- - [Classes](custom-types/classes.md) -->
65+
<!-- - [Access Modifiers](custom-types/access-modifiers.md) -->
66+
<!-- - [Constructors, Destructors and RAII](custom-types/raii.md) -->
6767

6868
## Managing Growing Projects
6969

70-
- [Managing Growing Projects](managing-projects/managing-projects.md)
71-
- [Namespaces](managing-projects/namespaces.md)
72-
- [Headers](managing-projects/headers.md)
73-
- [Modules (C++20)](managing-projects/modules.md)
74-
- [CMake](managing-projects/cmake.md)
70+
<!-- - [Managing Growing Projects](managing-projects/managing-projects.md) -->
71+
<!-- - [Namespaces](managing-projects/namespaces.md) -->
72+
<!-- - [Headers](managing-projects/headers.md) -->
73+
<!-- - [Modules (C++20)](managing-projects/modules.md) -->
74+
<!-- - [CMake](managing-projects/cmake.md) -->
7575

7676
## Generic Programming
7777

78-
- [Generic Programming](generics/generics.md)
79-
- [Templates](generics/templates.md)
80-
- [Template Functions](generics/template-func.md)
81-
- [Template Classes](generics/template-classes.md)
82-
- [Other Templates](generics/other-templates.md)
83-
- [Constraining Templates with Concepts](generics/concepts.md)
84-
- [Parameter Packs](generics/param-packs.md)
85-
- [Type Erasure](generics/type-erasure.md)
86-
- [Sum Types](generics/sum-types.md)
78+
<!-- - [Generic Programming](generics/generics.md) -->
79+
<!-- - [Templates](generics/templates.md) -->
80+
<!-- - [Template Functions](generics/template-func.md) -->
81+
<!-- - [Template Classes](generics/template-classes.md) -->
82+
<!-- - [Other Templates](generics/other-templates.md) -->
83+
<!-- - [Constraining Templates with Concepts](generics/concepts.md) -->
84+
<!-- - [Parameter Packs](generics/param-packs.md) -->
85+
<!-- - [Type Erasure](generics/type-erasure.md) -->
86+
<!-- - [Sum Types](generics/sum-types.md) -->
8787

8888
## IO
8989

90-
- [IO](io/io.md)
91-
- [Streams](io/streams.md)
92-
- [Files](io/files.md)
93-
- [Formatted String Output (C++20/23)](io/fromatted-strings.md)
90+
<!-- - [IO](io/io.md) -->
91+
<!-- - [Streams](io/streams.md) -->
92+
<!-- - [Files](io/files.md) -->
93+
<!-- - [Formatted String Output (C++20/23)](io/fromatted-strings.md) -->
9494

9595
## IO Project
9696

97-
- [Project: IO Project](io/io-project.md)
97+
<!-- - [Project: IO Project](io/io-project.md) -->
9898

9999
## Algorithms
100100

101-
- [Algorithms](algorithms/algorithms.md)
102-
- [Iterators](algorithms/iterators.md)
103-
- [Generic Algorithms](algorithms/generic-algos.md)
104-
- [Ranges and Constrained Algorithms](algorithms/ranges.md)
105-
- [Views and Composition](algorithms/views.md)
101+
<!-- - [Algorithms](algorithms/algorithms.md) -->
102+
<!-- - [Iterators](algorithms/iterators.md) -->
103+
<!-- - [Generic Algorithms](algorithms/generic-algos.md) -->
104+
<!-- - [Ranges and Constrained Algorithms](algorithms/ranges.md) -->
105+
<!-- - [Views and Composition](algorithms/views.md) -->
106106

107107
## Improved IO Project
108108

109-
- [Project: Improving Our IO Project with Algorithms](algorithms/improved-io-project.md)
109+
<!-- - [Project: Improving Our IO Project with Algorithms](algorithms/improved-io-project.md) -->
110110

111111
## Memory
112112

113-
- [Memory](memory/memory.md)
114-
- [C++ Memory Model](memory/memory-model.md)
115-
- [Stack vs. Heap](memory/stack-vs-heap.md)
116-
- [Storage Duration Types](memory/storage-duration-types.md)
117-
- [Dynamic Resource Allocation](memory/resources.md)
118-
- [Smart Pointers](memory/smart-pointers.md)
119-
- [Addresses and Pointers](memory/pointers.md)
120-
- [Obtaining an Objects Address](memory/addressof.md)
121-
- [Allocators](memory/allocators.md)
122-
- [Manual Memory Management](memory/manual-memory.md)
113+
<!-- - [Memory](memory/memory.md) -->
114+
<!-- - [C++ Memory Model](memory/memory-model.md) -->
115+
<!-- - [Stack vs. Heap](memory/stack-vs-heap.md) -->
116+
<!-- - [Storage Duration Types](memory/storage-duration-types.md) -->
117+
<!-- - [Dynamic Resource Allocation](memory/resources.md) -->
118+
<!-- - [Smart Pointers](memory/smart-pointers.md) -->
119+
<!-- - [Addresses and Pointers](memory/pointers.md) -->
120+
<!-- - [Obtaining an Objects Address](memory/addressof.md) -->
121+
<!-- - [Allocators](memory/allocators.md) -->
122+
<!-- - [Manual Memory Management](memory/manual-memory.md) -->
123123

124124
## Concurrency
125125

126-
- [Concurrency](concurrency/concurrency.md)
127-
- [Running Code Simultaneously](concurrency/basics.md)
128-
- [Concurrency vs. Parallelism vs. Asynchronous](concurrency/terminology.md)
129-
- [Parallel Algorithms and Execution Policies](concurrency/par-algos.md)
130-
- [Threads](concurrency/threads.md)
131-
- [Atomics](concurrency/atomics.md)
132-
- [Synchronization Techniques](concurrency/sync-techniques.md)
133-
- [Semaphores](concurrency/semaphores.md)
134-
- [Mutexes](concurrency/mutexes.md)
135-
- [Locks](concurrency/locks.md)
136-
- [Latches](concurrency/latches.md)
137-
- [Barriers](concurrency/barriers.md)
138-
- [Conditional Variables](concurrency/cond-vars.md)
139-
- [Coroutines](concurrency/coroutines.md)
140-
- [Async](concurrency/async.md)
141-
- [SIMD](concurrency/simd.md)
142-
- [Executors, Senders and Receivers](concurrency/executors-senders-receivers.md)
126+
<!-- - [Concurrency](concurrency/concurrency.md) -->
127+
<!-- - [Running Code Simultaneously](concurrency/basics.md) -->
128+
<!-- - [Concurrency vs. Parallelism vs. Asynchronous](concurrency/terminology.md) -->
129+
<!-- - [Parallel Algorithms and Execution Policies](concurrency/par-algos.md) -->
130+
<!-- - [Threads](concurrency/threads.md) -->
131+
<!-- - [Atomics](concurrency/atomics.md) -->
132+
<!-- - [Synchronization Techniques](concurrency/sync-techniques.md) -->
133+
<!-- - [Semaphores](concurrency/semaphores.md) -->
134+
<!-- - [Mutexes](concurrency/mutexes.md) -->
135+
<!-- - [Locks](concurrency/locks.md) -->
136+
<!-- - [Latches](concurrency/latches.md) -->
137+
<!-- - [Barriers](concurrency/barriers.md) -->
138+
<!-- - [Conditional Variables](concurrency/cond-vars.md) -->
139+
<!-- - [Coroutines](concurrency/coroutines.md) -->
140+
<!-- - [Async](concurrency/async.md) -->
141+
<!-- - [SIMD](concurrency/simd.md) -->
142+
<!-- - [Executors, Senders and Receivers](concurrency/executors-senders-receivers.md) -->
143143

144144
## Metaprogramming
145145

146-
- [Metaprogramming](meta/meta.md)
147-
- [Type Traits and SFINAE](meta/type-traits.md)
148-
- [Compile Time Computation](meta/comptime.md)
149-
- [Index Sequences](meta/index-seqs.md)
146+
<!-- - [Metaprogramming](meta/meta.md) -->
147+
<!-- - [Type Traits and SFINAE](meta/type-traits.md) -->
148+
<!-- - [Compile Time Computation](meta/comptime.md) -->
149+
<!-- - [Index Sequences](meta/index-seqs.md) -->
150150

151151
## Numerics and Mathematical Calculations
152152

153-
- [Numerics and Mathematical Calculations](numerics/numerics.md)
154-
- [Mathematical Functions](numerics/math-func.md)
155-
- [Mathematical Constants](numerics/numbers.md)
156-
- [Numerical Limits](numerics/numeric-limits.md)
157-
- [Complex Number Type](numerics/complex-numbers.md)
158-
<!-- - [Valarray Type](numerics/.md) -->
159-
- [Pseudo Random Number Generation](numerics/rand.md)
160-
- [Floating Point Environment Control](numerics/fp-env.md)
153+
<!-- - [Numerics and Mathematical Calculations](numerics/numerics.md) -->
154+
<!-- - [Mathematical Functions](numerics/math-func.md) -->
155+
<!-- - [Mathematical Constants](numerics/numbers.md) -->
156+
<!-- - [Numerical Limits](numerics/numeric-limits.md) -->
157+
<!-- - [Complex Number Type](numerics/complex-numbers.md) -->
158+
<!-- - [Valarray Type](numerics/.md) -->
159+
<!-- - [Pseudo Random Number Generation](numerics/rand.md) -->
160+
<!-- - [Floating Point Environment Control](numerics/fp-env.md) -->
161161

162162
## Object Orientated Programming in C++
163163

164-
- [Object Orientated Programming in C++](oop/oop.md)
165-
- [Inheritance](oop/inheritance.md)
166-
- [Abstract Classes](oop/abstract-classes.md)
164+
<!-- - [Object Orientated Programming in C++](oop/oop.md) -->
165+
<!-- - [Inheritance](oop/inheritance.md) -->
166+
<!-- - [Abstract Classes](oop/abstract-classes.md) -->
167167

168168
## Working with the Filesystem
169169

170-
- [Working with the Filesystem](fs/fs.md)
171-
- [Paths](fs/paths.md)
172-
- [Directories](fs/directories.md)
173-
- [Utilities](fs/utils.md)
170+
<!-- - [Working with the Filesystem](fs/fs.md) -->
171+
<!-- - [Paths](fs/paths.md) -->
172+
<!-- - [Directories](fs/directories.md) -->
173+
<!-- - [Utilities](fs/utils.md) -->
174174

175175
## Date, Time and Localization
176176

177-
- [Date and Time](time/date-time.md)
178-
- [Clocks and Time](time/clocks.md)
179-
- [Timezones](time/timezones.md)
180-
- [Calenders](time/calendars.md)
181-
- [Locales](time/locales.md)
177+
<!-- - [Date and Time](time/date-time.md) -->
178+
<!-- - [Clocks and Time](time/clocks.md) -->
179+
<!-- - [Timezones](time/timezones.md) -->
180+
<!-- - [Calenders](time/calendars.md) -->
181+
<!-- - [Locales](time/locales.md) -->
182182

183183
## Regex
184184

185-
- [Regex](regex/regex.md)
185+
<!-- - [Regex](regex/regex.md) -->
186186

187187
## Appendix
188188

189-
- [Appendix](appendix/appendicies.md)
190-
- [A - Keywords](appendix/keywords.md)
191-
- [B - Operators](appendix/operators.md)
192-
- [C - Developer Tools](appendix/devtools.md)
193-
- [D - Standard Versions](appendix/standard-versions.md)
194-
- [E - Value Categories](appendix/value-categories.md)
195-
- [F - Compiler Vendors](appendix/compiler-vendors.md)
196-
- [G - Compilation Pipeline](appendix/compilation-pipeline.md)
197-
- [H - The C++ Runtime](appendix/runtime.md)
198-
- [I - Challenge Answers](appendix/callenge-answers.md)
189+
<!-- - [Appendix](appendix/appendicies.md) -->
190+
<!-- - [A - Keywords](appendix/keywords.md) -->
191+
<!-- - [B - Operators](appendix/operators.md) -->
192+
<!-- - [C - Developer Tools](appendix/devtools.md) -->
193+
<!-- - [D - Standard Versions](appendix/standard-versions.md) -->
194+
<!-- - [E - Value Categories](appendix/value-categories.md) -->
195+
<!-- - [F - Compiler Vendors](appendix/compiler-vendors.md) -->
196+
<!-- - [G - Compilation Pipeline](appendix/compilation-pipeline.md) -->
197+
<!-- - [H - The C++ Runtime](appendix/runtime.md) -->
198+
<!-- - [I - Challenge Answers](appendix/callenge-answers.md) -->

0 commit comments

Comments
 (0)