forked from practicalli/clojure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mkdocs.yml
461 lines (448 loc) · 20.1 KB
/
mkdocs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
---
# Practicalli Clojure
site_name: Practicalli Clojure
site_url: https://practical.li/clojure
site_description: Practical guide to Clojure programming language and Clojure REPL driven development
site_author: Practicalli
site_org: https://practical.li/
copyright: Copyright © 2023 Practicali <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>
repo_url: https://github.com/practicalli/clojure/
edit_uri: https://github.com/practicalli/clojure/edit/main/docs/
# Deployment
# remote_name: origin
remote_branch: gh-pages # deployment branch
# Theme and styling
theme:
name: material
logo: assets/images/practicalli-logo.png
favicon: assets/favicon.svg
features:
- announce.dismiss
- content.action.edit
- content.action.view
- content.code.annotate
- content.code.copy
- content.tabs.link
- navigation.footer
- navigation.indexes # Nav sections can have files
- navigation.instant # Avoid page reloading for internal links
- navigation.top
- navigation.tracking # Update URL with sub-heading anchor names
palette:
# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: blue
accent: teal
toggle:
icon: material/brightness-7
name: Switch to dark mode
# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: blue
accent: teal
toggle:
icon: material/brightness-4
name: Switch to light mode
# Override theme
custom_dir: overrides
extra_css:
- assets/stylesheets/extra.css
## Additional styling
markdown_extensions:
- admonition
- pymdownx.details
- pymdownx.superfences
- attr_list
- md_in_html # Grids
- footnotes # footnotes and abbreviations
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- pymdownx.highlight:
anchor_linenums: true
- pymdownx.inlinehilite
- pymdownx.snippets:
url_download: true
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.tabbed:
alternate_style: true
- pymdownx.keys # keyboard keys
- pymdownx.magiclink
- def_list # lists
- pymdownx.tasklist:
custom_checkbox: true # checkboxes
- toc:
permalink: λ︎
## Plugins
plugins:
# Explicitly add search plugin when defining plugins in this configuration file
- search
- callouts
- glightbox # Image aligning
- git-revision-date-localized: # Update and Creation date of each page
# enable_creation_date: true
fallback_to_build_date: true
# Generate Social Cards via CI only
# in assets/images/social
- social:
cards: !ENV [MKDOCS_SOCIAL_CARDS_GENERATE, true]
# Redirect pages when moved or changed
- redirects:
redirect_maps:
repl-driven-development.md: introduction/repl-workflow.md
clojure-cli/data-browsers/index.md: data-inspector/index.md
clojure-editors/editor-install-guides/vspacecode-calva.md: clojure-editors/index.md
clojure-editors/editor-user-guides/vspacecode-calva.md: clojure-editors/index.md
clojure-cli/projects/tools-build.md: clojure-cli/projects/package/tools-build.md
# Footer / Social Media
extra:
analytics:
provider: google
property: G-QZ22Z9DH4T
social:
- icon: material/web
link: https://practical.li/
- icon: fontawesome/brands/linkedin
link: https://www.linkedin.com/in/jr0cket/
- icon: fontawesome/brands/slack
link: https://clojurians.slack.com/messages/practicalli
- icon: fontawesome/brands/twitter
link: https://twitter.com/practical_li
- icon: fontawesome/brands/github
link: https://github.com/practicalli
- icon: fontawesome/brands/docker
link: https://hub.docker.com/u/practicalli
# Navigation
nav:
- Introduction:
- index.md
- Clojure in Fifteen Mins: introduction/clojure-in-15-minutes.md
- REPL Workflow: introduction/repl-workflow.md
- Concepts:
- introduction/concepts/index.md
- Functional vs Imperative: introduction/concepts/what-is-functional-programming.md
- From The Author: introduction/concepts/clojure-made-simple.md
# - introduction/concepts/purpose.md
# - introduction/learning-clojure.md
# - introduction/who-uses-clojure.md
- Contributing: introduction/contributing.md
- Writing Tips: introduction/writing-tips.md
- Install:
- install/index.md
- Java Host: install/java.md
- Clojure CLI: install/clojure-cli.md
- Clojure CLI Overview:
- clojure-cli/index.md
- Practicalli Config: clojure-cli/practicalli-config.md
- Built-in Commands: clojure-cli/built-in-commands.md
- Defining aliases: clojure-cli/defining-aliases.md
- Execution Options: clojure-cli/execution-options.md
- REPL Reloaded: clojure-cli/repl-reloaded.md
- Clojure Style: clojure-cli/clojure-style.md
- Clojure REPL:
- clojure-cli/repl/index.md
- Coding: clojure-cli/repl/coding.md
- Managing Libraries: clojure-cli/repl/libraries.md
- Help: clojure-cli/repl/help.md
- Custom Startup: clojure-cli/repl-startup.md
- Troubleshoot: clojure-cli/repl/troubleshooting.md
- Theory REPL Uncovered: clojure-cli/repl/repl-uncovered.md
- Clojure Projects:
- clojure-cli/projects/index.md
- Template Projects:
- clojure-cli/projects/templates/index.md
- Practicalli Templates:
- clojure-cli/projects/templates/practicalli/index.md
- Minimal: clojure-cli/projects/templates/practicalli/minimal.md
- Application: clojure-cli/projects/templates/practicalli/application.md
- Service: clojure-cli/projects/templates/practicalli/service.md
- Landing Page: clojure-cli/projects/templates/practicalli/landing-page.md
- Design Templates: clojure-cli/projects/templates/design-templates.md
- Add Libraries: clojure-cli/projects/add-libraries.md
- Namespaces: clojure-cli/projects/namespace.md
- Rich Comment: clojure-cli/projects/rich-comments.md
- Hotload in Project: clojure-cli/projects/hotload-in-project.md
- Migrate projects: clojure-cli/projects/migrate-project.md
- Package:
- clojure-cli/projects/package/index.md
- tools.build: clojure-cli/projects/package/tools-build.md
- Clojure Editors:
- clojure-editors/index.md
- Clojure LSP:
- clojure-editors/clojure-lsp/index.md
- Clojure LSP Snippets: clojure-editors/clojure-lsp/snippets.md
- Practicalli Snippets: clojure-editors/clojure-lsp/practicalli-snippets.md
- Automation:
- automation/index.md
- Make: automation/make.md
# - Shell Scripts: automation/shell-scripts.md
# - Babashka: automation/babashka.md
- Data Inspectors:
- data-inspector/index.md
- data-inspector/clojure-inspector.md
- Portal: data-inspector/portal.md
- Code Challenges:
- coding-challenges/index.md
# - Palindrome:
# - coding-challenges/palindrome/index.md
# - coding-challenges/palindrome/simple-palindrome-test.md
- 4 Ever Clojure:
- coding-challenges/4clojure/index.md
- Exercism:
- coding-challenges/exercism/index.md
- RNA Transcription: coding-challenges/exercism/rna-transcription.md
- Nucleotide Count: coding-challenges/exercism/nucleotide-count.md
- coding-challenges/exercism/hamming.md
- coding-challenges/exercism/space-age.md
- Bob:
- coding-challenges/exercism/bob/index.md
- coding-challenges/exercism/bob/bob-string-approach.md
- coding-challenges/exercism/bob/bob-regular-expression-approach.md
- Simple projects:
- simple-projects/index.md
- Random Function: simple-projects/random-clojure-function.md
- Tripple Lock: simple-projects/tripple-lock.md
# - Salary Calculator: simple-projects/salary-calculator.md
# - simple-projects/generate-web-page.md
- Encoder Decode:
- simple-projects/encode-decode/index.md
- simple-projects/encode-decode/convert-boolean-values.md
- simple-projects/encode-decode/caesar-cipher-rot13.md
- simple-projects/encode-decode/rna-dna.md
- simple-projects/encode-decode/clacks.md
- Data Transform:
- simple-projects/data-transformation/index.md
- simple-projects/data-transformation/most-common-word.md
- Mutating State:
- simple-projects/mutating-state/index.md
- simple-projects/mutating-state/mutants-assemble.md
- TDD Kata:
- simple-projects/tdd-kata/index.md
- Recent Song list: simple-projects/tdd-kata/recent-song-list.md
- Salary Slip Generator: simple-projects/tdd-kata/salary-slip-generator.md
# - simple-projects/split-the-bill.md
- CodeWars: coding-challenges/codewars/index.md
- Advent Of Code: coding-challenges/advent-of-code.md
- Games:
- games/index.md
# Convert to deps.edn
- TicTacToe:
- games/tictactoe-cli/index.md
- Testing:
- testing/index.md
- Unit Testing:
- testing/unit-testing/index.md
- Writing Tests: testing/unit-testing/writing-unit-tests.md
- Fixtures: testing/unit-testing/fixtures.md
- Test Selectors: testing/unit-testing/test-selectors.md
# <!-- - [TDD Kata: Recent Song-ltesting/unit-testing/tdd-kata/recent-song-list.md -->
# <!-- - testing/unit-testing/clojure-test-expectations.md -->
- Test runners:
- testing/test-runners/index.md
- Kaocha: testing/test-runners/kaocha-test-runner.md
- Cognitect Labs: testing/test-runners/congnitect-labs-test-runner.md
- Example Projects: testing/test-runners/example-projects.md
- Clojure Spec:
- clojure-spec/index.md
- REPL Experiments: clojure-spec/using-spec-in-the-repl.md
- Project config: clojure-spec/add-spec-to-projects.md
- Organise spec: clojure-spec/organising-specs.md
- Data Specs:
- clojure-spec/data/index.md
- clojure-spec/data/predicate-specifications.md
- clojure-spec/data/literal-values.md
- clojure-spec/data/conform.md
- clojure-spec/data/valid-q.md
- clojure-spec/data/explain.md
- clojure-spec/data/defining-specifications.md
- clojure-spec/data/registry.md
- clojure-spec/data/entity-maps.md
- clojure-spec/data/map-literals.md
- clojure-spec/data/and-or-specifications.md
- clojure-spec/data/composite-specifications.md
- clojure-spec/data/hierarchical-specifications.md
- Function Specs:
- clojure-spec/functions/index.md
- clojure-spec/functions/function-definition-specifications.md
- clojure-spec/functions/documentation.md
- clojure-spec/functions/higher-order-functions.md
- Testing:
- clojure-spec/testing/index.md
- clojure-spec/testing/checking arguments.md
# <!-- - clojure-spec/defining-specifications/index.md -->
- Generative Testing:
- clojure-spec/generative-testing/index.md
- clojure-spec/generative-testing/predicate-generators.md
# <!-- - clojure-spec/generative-testing/generating-generators.md -->
- clojure-spec/generative-testing/example-projects/index.md
- clojure-spec/generative-testing/example-projects/next-jdbc.md
- Spec Project:
- clojure-spec/projects/index.md
# <!-- Checking for bad names in ns declarations, lets, etc. -->
# <!-- - clojure-spec/projects/convention-checks.md -->
- Playing Cards:
- clojure-spec/projects/card-game/index.md
- Bank Account:
- clojure-spec/projects/bank-account/index.md
# <!-- - clojure-spec/projects/bank-account/create-project.md -->
- clojure-spec/projects/bank-account/write-failing-tests.md
- clojure-spec/projects/bank-account/customer-details-specification.md
- clojure-spec/projects/bank-account/validate-customer-details-specification.md
- clojure-spec/projects/bank-account/account-holder-specification.md
- clojure-spec/projects/bank-account/generate-test-data.md
- clojure-spec/projects/bank-account/unit-tests-with-spec.md
- clojure-spec/projects/bank-account/function-specifications.md
- clojure-spec/projects/bank-account/test-functions-against-spec.md
- Continuous Integration:
- continuous-integration/index.md
- Circle CI:
- continuous-integration/circle-ci/index.md
- continuous-integration/circle-ci/random-clojure-function.md
- continuous-integration/circle-ci/status-monitor.md
# <!-- - continuous-integration/circle-ci/circle-ci-sample-project.md -->
- GitHub Workflow:
- continuous-integration/github-workflow/index.md
# <!-- - testing/performance-testing/index.md -->
# <!-- - testing/load-stress-testing/index.md -->
- Reference:
- reference/index.md
- quickstart/quick-reference.md
- Clojure CLI:
- reference/clojure-cli/index.md
# <!-- - [deps.edn aliases](clojure-cli/configure/deps-edn-aliases.md) -->
- reference/clojure-cli/defining-aliases.md
- reference/clojure-cli/example-alias-definitions.md
- reference/clojure-cli/jvm-options.md
# - clojure-cli/configure/common-tasks.md
# - clojure-cli/configure/defining-aliases.md
- Code Analysis: reference/code-analysis.md
- Standard Library:
- reference/standard-library/index.md
- reference/standard-library/destructuring.md
- reference/standard-library/predicate-functions.md
- Regular Expressions:
- reference/standard-library/regular-expressions/index.md
- reference/standard-library/regular-expressions/matching-with-groups.md
- reference/standard-library/regular-expressions/matching-sub-strings.md
- reference/standard-library/regular-expressions/matching-sub-sequences.md
- reference/standard-library/regular-expressions/common-regex-patterns.md
- reference/standard-library/regular-expressions/string-replace-with-regex.md
- reference/standard-library/regular-expressions/string-split-with-regex.md
- reference/standard-library/regular-expressions/sub-expression-matches.md
- reference/standard-library/cond-thread-macro.md
- Java:
- reference/clojure-syntax/java-interop.md
- More Java fun: reference/clojure-syntax/more-java-fun.md
# Move syntax into a reference section and use projects to expose audience to Clojure syntax
# Basic syntax and calling functions
- Clojure Syntax:
- reference/clojure-syntax/syntax.md
- reference/clojure-syntax/parenthesis.md
- reference/clojure-syntax/code-documentation.md
- reference/clojure-syntax/comments.md
- reference/clojure-syntax/strings.md
- reference/clojure-syntax/numbers-maths.md
- reference/clojure-syntax/ratios.md
- reference/clojure-syntax/control-flow.md
- reference/doc-and-source-functions.md
- reference/clojure-syntax/assigning-names.md
- reference/clojure-syntax/naming.md
- reference/kebab-case.md
- reference/threading-macros.md
- reference/tagged-literals/index.md
- reference/tagged-literals/uuid.md
# Persistent data structures list vector map set -->
- Data Structures:
- data-structures/index.md
- data-structures/list.md
- data-structures/hash-maps/index.md
- data-structures/hash-maps/create.md
- data-structures/hash-maps/access.md
# - data-structures/hash-maps/update.md
- data-structures/vector.md
- data-structures/set.md
- data-structures/naming.md
- data-structures/shared-memory.md
- Pretty Printing: data-structures/pretty-printing.md
- Using Data Structures:
- using-data-structures/index.md
- using-data-structures/sequences.md
- using-data-structures/lazy-sequences.md
- using-data-structures/destructuring.md
- using-data-structures/applying-functions.md
- using-data-structures/mapping-data-structures.md
- Modifying:
- modifying-data-structures/index.md
- modifying-data-structures/lists.md
- modifying-data-structures/maps.md
- modifying-data-structures/vectors.md
- modifying-data-structures/sets.md
- iterate-over-data/index.md
- iterate-over-data/map.md
- iterate-over-data/map-partial.md
- iterate-over-data/map-fn.md
- iterate-over-data/filter-remove.md
- iterate-over-data/apply.md
- iterate-over-data/reduce.md
- iterate-over-data/reduce.md
- iterate-over-data/reduce.md
- Design:
- designing-data-structures/index.md
- designing-data-structures/with-vectors.md
- designing-data-structures/with-vectors-of-vectors.md
- designing-data-structures/with-maps.md
- designing-data-structures/with-maps-of-maps.md
- designing-data-structures/with-vectors-of-maps.md
- designing-data-structures/modeling-alphabet-codes.md
- designing-data-structures/modeling-name-generation-map.md
- Thinking Functionally:
- thinking-functionally/index.md
- thinking-functionally/side-effects.md
- thinking-functionally/pure-functions.md
- thinking-functionally/impure-functions.md
- thinking-functionally/first-class-functions.md
- thinking-functionally/homoiconicity.md
- thinking-functionally/function-composition.md
- thinking-functionally/example-hitchhikers-guide.md
# <!-- TODO - thinking-functionally/iterate-over-values.md -->
- thinking-functionally/higher-order-functions.md
- thinking-functionally/immutability.md
- thinking-functionally/immutable-values.md
- thinking-functionally/immutable-collections.md
- thinking-functionally/immutable-local-bindings.md
- thinking-functionally/partial-functions.md
- thinking-functionally/map-with-partial.md
- thinking-functionally/list-comprehension.md
# <!-- - thinking-functionally/lazy-evaluation.md -->
- thinking-functionally/sequences.md
- sequence-abstractions.md
- thinking-functionally/functors.md
- thinking-functionally/arity.md
- thinking-functionally/pattern-matching.md
- thinking-functionally/polymorphism.md
- thinking-functionally/recursion.md
- thinking-functionally/recursion-polymorphism.md
- thinking-functionally/tail-recursion.md
- Crreative Coding:
- reference/creative-coding/index.md
- SVG:
- reference/clojure-svg/index.md
- JVM:
- reference/jvm/index.md
- reference/jvm/understanding-memory-usage.md
- reference/jvm/common-options.md
- reference/jvm/java-17-flags.md
- reference/jvm/experimental-options.md
- Profile tools: reference/jvm/profile-tools.md
- reference/performance/index.md
- Alternative Tools:
- alternative-tools/index.md
- alternative-tools/clojure-cli/basic-repl.md
- alternative-tools/clojure-cli/evaluate-an-expression.md
- alternative-tools/clojure-cli/set-namespace-on-repl-startup.md