diff options
author | Tristan Williams <tgwil@tgwil.net> | 2024-10-29 10:16:34 -0400 |
---|---|---|
committer | Tristan Williams <tgwil@tgwil.net> | 2024-10-29 10:16:34 -0400 |
commit | abafb6f35f717ec15edc512d3e7318d497c90dec (patch) | |
tree | b5647300656578be064fbbaffc0b7bc0ba5e76f2 | |
parent | Rename old thing to SYSTEM (diff) | |
download | template.cl-abafb6f35f717ec15edc512d3e7318d497c90dec.tar.gz template.cl-abafb6f35f717ec15edc512d3e7318d497c90dec.tar.bz2 template.cl-abafb6f35f717ec15edc512d3e7318d497c90dec.zip |
Overhaul documentation
-rw-r--r-- | CONTRIBUTING.md | 20 | ||||
-rw-r--r-- | LICENSE.txt | 7 | ||||
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | README.md | 68 | ||||
-rw-r--r-- | SYSTEM.asd | 27 | ||||
-rw-r--r-- | doc/ORGANIZATION.md | 27 | ||||
-rw-r--r-- | src/SYSTEM.lisp | 27 | ||||
-rw-r--r-- | test/SYSTEM-test.lisp | 27 |
8 files changed, 195 insertions, 11 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..280e974 --- /dev/null +++ b/CONTRIBUTING.md | |||
@@ -0,0 +1,20 @@ | |||
1 | # How to contribute to SYSTEM | ||
2 | |||
3 | ## Guidelines | ||
4 | |||
5 | - Read and understand the documentation in `doc/dev/`, starting with `DEV_MANUAL.md`. | ||
6 | - Make commits, branches, patches, patchsets, and emails limited to "one logical thing". | ||
7 | - Follow the example of what you see in the rest of the codebase. | ||
8 | - Reach out for help if you need assistance. | ||
9 | |||
10 | |||
11 | ## How to submit patches | ||
12 | |||
13 | Email patchsets, bug reports, etc. directly to Tristan Williams <tgwil@tgwil.net> using one of the following subject templates: | ||
14 | |||
15 | - Patchsets: `SYSTEM: Patchset: [description of changes]` | ||
16 | - Bug Reports: `SYSTEM: Bug Report: [description of bug]` | ||
17 | - Development Discussion: `SYSTEM: RFC: [description of discussion topic]` | ||
18 | - Questions/Help: `SYSTEM: Help: [description of question]` | ||
19 | |||
20 | Be informative in emails, but don't overwhelm with useless details. | ||
diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..e755c5e --- /dev/null +++ b/LICENSE.txt | |||
@@ -0,0 +1,7 @@ | |||
1 | Copyright © 2024 <copyright holders> | ||
2 | |||
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
4 | |||
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
6 | |||
7 | THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
@@ -29,3 +29,6 @@ test: | |||
29 | .PHONY: clean | 29 | .PHONY: clean |
30 | clean: | 30 | clean: |
31 | @if test -f fash; then rm -f fash && echo "rm: SYSTEM"; fi | 31 | @if test -f fash; then rm -f fash && echo "rm: SYSTEM"; fi |
32 | |||
33 | |||
34 | # Copyright © 2024 <copyright holders> | ||
@@ -7,24 +7,76 @@ It contains only the basics: | |||
7 | - System/package definitions | 7 | - System/package definitions |
8 | - Testing suite (using 5am) | 8 | - Testing suite (using 5am) |
9 | - Makefile for compiling executable | 9 | - Makefile for compiling executable |
10 | - Documentation skeleton | ||
10 | 11 | ||
11 | 12 | ||
12 | ## Usage | 13 | ## Usage |
13 | 14 | ||
14 | Modify the following files: | 15 | Modify the following files: |
15 | 16 | ||
16 | - README.md | 17 | - Documentation: |
17 | - Makefile | 18 | - README.md |
18 | - SYSTEM.asd | 19 | - CONTRIBUTING.md |
19 | - src/SYSTEM.lisp | 20 | - LICENSE.txt |
20 | - test/SYSTEM-test.lisp | 21 | - doc/ORGANIZATION.md |
22 | - Build stuff: | ||
23 | - Makefile | ||
24 | - SYSTEM.asd | ||
25 | - Code files: | ||
26 | - src/SYSTEM.lisp | ||
27 | - test/SYSTEM-test.lisp | ||
21 | 28 | ||
22 | Do the following: | 29 | Do the following: |
23 | 30 | ||
24 | - Replace any instance of the word SYSTEM with the name of the system/project | 31 | - Replace any instance of the word SYSTEM with the name of the system/project. |
25 | - Fill out the headers in each file (Filename, description, AUTHOR) | 32 | - Fill out the headers in each file (Filename, description, AUTHOR). |
33 | - Delete all this template stuff in the README. | ||
34 | - [Do stuff in brackets] | ||
26 | 35 | ||
27 | 36 | ||
28 | ## Notes | 37 | ## Notes |
29 | 38 | ||
30 | - This template assumes that Quicklisp is installed to `~/lisp/quicklisp/`. | 39 | - This template assumes that Quicklisp is installed to `~/lisp/quicklisp/`. If it is not, you need to update the `Makefile` to load Quicklisp from wherever you have it installed. |
40 | |||
41 | |||
42 | |||
43 | |||
44 | README template follows: | ||
45 | # SYSTEM | ||
46 | |||
47 | [Description of SYSTEM]. | ||
48 | |||
49 | |||
50 | ## Current State of SYSTEM | ||
51 | |||
52 | SYSTEM is in [state]. | ||
53 | |||
54 | |||
55 | ## Installation | ||
56 | |||
57 | [How to install this thing] | ||
58 | |||
59 | |||
60 | ## Usage | ||
61 | |||
62 | [How to use this thing] | ||
63 | |||
64 | |||
65 | ## Documentation | ||
66 | |||
67 | Most documentation can be found in the `doc/` directory. | ||
68 | |||
69 | Important documentation files include: | ||
70 | - `README.md`: Documentation entrypoint. | ||
71 | - `CONTRIBUTING.md`: How to contribute to this repository. | ||
72 | - `doc/ORGANIZATION.md`: An outline of all directories/files in the repository. | ||
73 | |||
74 | |||
75 | ## Contributing to SYSTEM | ||
76 | |||
77 | Contributions are welcome. Please follow the guidelines in `CONTRIBUTING.md`. | ||
78 | |||
79 | |||
80 | ## License | ||
81 | |||
82 | This software is available under the MIT License (see `LICENSE.txt`). | ||
@@ -1,6 +1,5 @@ | |||
1 | ;;;; SYSTEM.asd | 1 | ;;;; SYSTEM.asd |
2 | ;;;; System definitions for SYSTEM | 2 | ;;;; System definitions for SYSTEM |
3 | ;;;; AUTHOR: | ||
4 | 3 | ||
5 | ;; --------------------------------------------------------------------- | 4 | ;; --------------------------------------------------------------------- |
6 | ;;; Main System Definition | 5 | ;;; Main System Definition |
@@ -18,3 +17,29 @@ | |||
18 | :depends-on ("SYSTEM" "fiveam") | 17 | :depends-on ("SYSTEM" "fiveam") |
19 | :components ((:file "test/SYSTEM-test")) | 18 | :components ((:file "test/SYSTEM-test")) |
20 | :perform (asdf:test-op (o c) (uiop:symbol-call :fiveam '#:run-all-tests))) | 19 | :perform (asdf:test-op (o c) (uiop:symbol-call :fiveam '#:run-all-tests))) |
20 | |||
21 | |||
22 | ;; --------------------------------------------------------------------- | ||
23 | ;;; Copyright Notice | ||
24 | ;; ----------------- | ||
25 | ;; Copyright © 2024 <copyright holders> | ||
26 | ;; | ||
27 | ;; Permission is hereby granted, free of charge, to any person obtaining | ||
28 | ;; a copy of this software and associated documentation files | ||
29 | ;; (the “Software”), to deal in the Software without restriction, | ||
30 | ;; including without limitation the rights to use, copy, modify, merge, | ||
31 | ;; publish, distribute, sublicense, and/or sell copies of the Software, | ||
32 | ;; and to permit persons to whom the Software is furnished to do so, | ||
33 | ;; subject to the following conditions: | ||
34 | ;; | ||
35 | ;; The above copyright notice and this permission notice shall be | ||
36 | ;; included in all copies or substantial portions of the Software. | ||
37 | ;; | ||
38 | ;; THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, | ||
39 | ;; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
40 | ;; MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
41 | ;; IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
42 | ;; CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
43 | ;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
44 | ;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
45 | ;; --------------------------------------------------------------------- | ||
diff --git a/doc/ORGANIZATION.md b/doc/ORGANIZATION.md new file mode 100644 index 0000000..a7e2020 --- /dev/null +++ b/doc/ORGANIZATION.md | |||
@@ -0,0 +1,27 @@ | |||
1 | # Organization of SYSTEM repository | ||
2 | |||
3 | ## Directories/Files and their purposes | ||
4 | |||
5 | ### Documentation | ||
6 | |||
7 | - `README.md`: Entrypoint for documentation. Should be the first thing everyone reads. | ||
8 | |||
9 | - `CONTRIBUTING.md`: Guidelines for contributing to this project. | ||
10 | |||
11 | - `LICENSE.txt`: Copy of license text. | ||
12 | |||
13 | - `doc/`: Documentation. | ||
14 | - `doc/ORGANIZATION.md`: This file. Outline of repository and the purpose of everything in it. | ||
15 | |||
16 | |||
17 | ### Source Code | ||
18 | |||
19 | - `Makefile`: Make script for compiling executable. | ||
20 | |||
21 | - `SYSTEM.asd`: Lisp system definition. | ||
22 | |||
23 | - `src/`: Source Code. | ||
24 | - `src/SYSTEM.lisp`: Lisp package definition, entrypoint for application. | ||
25 | |||
26 | - `test/`: Test Suite. | ||
27 | - `test/SYSTEM-test.lisp`: Entrypoint for test suite. | ||
diff --git a/src/SYSTEM.lisp b/src/SYSTEM.lisp index 468645a..5b30a31 100644 --- a/src/SYSTEM.lisp +++ b/src/SYSTEM.lisp | |||
@@ -1,6 +1,5 @@ | |||
1 | ;;;; SYSTEM.lisp | 1 | ;;;; SYSTEM.lisp |
2 | ;;;; Entrypoint for SYSTEM | 2 | ;;;; Entrypoint for SYSTEM |
3 | ;;;; AUTHOR: | ||
4 | 3 | ||
5 | ;; --------------------------------------------------------------------- | 4 | ;; --------------------------------------------------------------------- |
6 | ;;; Package Definition | 5 | ;;; Package Definition |
@@ -24,3 +23,29 @@ | |||
24 | "Entrypoint for SYSTEM." | 23 | "Entrypoint for SYSTEM." |
25 | (format t "SYSTEM Version: ~A" *version*) | 24 | (format t "SYSTEM Version: ~A" *version*) |
26 | "SYSTEM") | 25 | "SYSTEM") |
26 | |||
27 | |||
28 | ;; --------------------------------------------------------------------- | ||
29 | ;;; Copyright Notice | ||
30 | ;; ----------------- | ||
31 | ;; Copyright © 2024 <copyright holders> | ||
32 | ;; | ||
33 | ;; Permission is hereby granted, free of charge, to any person obtaining | ||
34 | ;; a copy of this software and associated documentation files | ||
35 | ;; (the “Software”), to deal in the Software without restriction, | ||
36 | ;; including without limitation the rights to use, copy, modify, merge, | ||
37 | ;; publish, distribute, sublicense, and/or sell copies of the Software, | ||
38 | ;; and to permit persons to whom the Software is furnished to do so, | ||
39 | ;; subject to the following conditions: | ||
40 | ;; | ||
41 | ;; The above copyright notice and this permission notice shall be | ||
42 | ;; included in all copies or substantial portions of the Software. | ||
43 | ;; | ||
44 | ;; THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, | ||
45 | ;; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
46 | ;; MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
47 | ;; IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
48 | ;; CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
49 | ;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
50 | ;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
51 | ;; --------------------------------------------------------------------- | ||
diff --git a/test/SYSTEM-test.lisp b/test/SYSTEM-test.lisp index d4a69cb..2ef52c1 100644 --- a/test/SYSTEM-test.lisp +++ b/test/SYSTEM-test.lisp | |||
@@ -24,8 +24,33 @@ | |||
24 | ;; --------------------------------------------------------------------- | 24 | ;; --------------------------------------------------------------------- |
25 | ;;; Tests | 25 | ;;; Tests |
26 | ;; --------------------------------------------------------------------- | 26 | ;; --------------------------------------------------------------------- |
27 | |||
28 | ;; Bullshit | 27 | ;; Bullshit |
29 | (5am:test existence | 28 | (5am:test existence |
30 | "Bullshit test just for implementing tests." | 29 | "Bullshit test just for implementing tests." |
31 | (is (equal (SYSTEM:entrypoint) "SYSTEM"))) | 30 | (is (equal (SYSTEM:entrypoint) "SYSTEM"))) |
31 | |||
32 | |||
33 | ;; --------------------------------------------------------------------- | ||
34 | ;;; Copyright Notice | ||
35 | ;; ----------------- | ||
36 | ;; Copyright © 2024 <copyright holders> | ||
37 | ;; | ||
38 | ;; Permission is hereby granted, free of charge, to any person obtaining | ||
39 | ;; a copy of this software and associated documentation files | ||
40 | ;; (the “Software”), to deal in the Software without restriction, | ||
41 | ;; including without limitation the rights to use, copy, modify, merge, | ||
42 | ;; publish, distribute, sublicense, and/or sell copies of the Software, | ||
43 | ;; and to permit persons to whom the Software is furnished to do so, | ||
44 | ;; subject to the following conditions: | ||
45 | ;; | ||
46 | ;; The above copyright notice and this permission notice shall be | ||
47 | ;; included in all copies or substantial portions of the Software. | ||
48 | ;; | ||
49 | ;; THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, | ||
50 | ;; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
51 | ;; MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
52 | ;; IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
53 | ;; CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
54 | ;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
55 | ;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
56 | ;; --------------------------------------------------------------------- | ||