|
1 | 1 | <div style="page-break-after: always;"></div>
|
2 | 2 |
|
3 | 3 | # Lab manual
|
4 |
| -<!-- |
5 |
| -<div style="width:50%; display: block; margin: auto;"> |
6 |
| - <img src="https://github.com/rendeirolab/lab-manual/blob/main/assets/img/logo.png?raw=true" style="width: 100%;"/> |
7 |
| - <p style="text-align: center;">Rendeiro Lab</p> |
8 |
| -</div> --> |
9 | 4 |
|
10 |
| -This is the Rendeiro lab manual, with all the information about the lab's culture and procedures. |
| 5 | +Welcome to the Rendeiro Lab Manual. This manual provides comprehensive information about the lab's culture, procedures, and workflows to ensure a collaborative and efficient research environment. |
11 | 6 |
|
12 |
| -The manual is available in the [`lab-manual`](https://github.com/rendeirolab/lab-manual/tree/main/manual) repository on Github. |
| 7 | +The manual is hosted in the [`lab-manual`](https://github.com/rendeirolab/lab-manual/tree/main/manual) repository on GitHub. It is written in [Markdown](https://daringfireball.net/projects/markdown/) and can be converted to HTML and PDF using [Pandoc](https://pandoc.org/). |
13 | 8 |
|
14 |
| -It is written in [Markdown](https://daringfireball.net/projects/markdown/), but can be converted to HTML and PDF using [Pandoc](https://pandoc.org/). |
15 |
| - |
16 |
| -It can be maintained and edited by anyone on Github. |
| 9 | +This manual is open source and maintained collaboratively. Anyone on GitHub can propose changes. |
17 | 10 |
|
18 | 11 | ## Building the manual
|
19 | 12 |
|
20 |
| -A [Makefile](https://github.com/rendeirolab/lab-manual/blob/main/manual/Makefile) is available in the [`lab-manual repository`](https://github.com/rendeirolab/lab-manual/tree/main/manual). |
21 |
| - |
22 |
| -Converting the manual to a single HTML file: |
| 13 | +The project includes a [Makefile](https://github.com/rendeirolab/lab-manual/blob/main/Makefile) to streamline the development process. |
23 | 14 |
|
24 |
| -```bash |
25 |
| -pandoc \ |
26 |
| - --toc \ |
27 |
| - --metadata-file=metadata.yaml \ |
28 |
| - --css style.css \ |
29 |
| - -s README.md manual/*.md \ |
30 |
| - -o rendeiro-lab_manual.html |
31 |
| -``` |
| 15 | +Key targets include: |
| 16 | +- **`format`**: Formats Markdown files consistently using `mdformat`. |
| 17 | +- **`build`**: Converts the manual into a single HTML file using `pandoc` and generates a PDF file using `wkhtmltopdf`. |
| 18 | +- **`clean`**: Removes generated files to ensure a fresh build. |
32 | 19 |
|
33 |
| -Converting the manual to a single PDF file (requires wkhtmltopdf dependency): |
34 |
| - |
35 |
| -```bash |
36 |
| -pandoc \ |
37 |
| - --toc \ |
38 |
| - -f gfm -t html5 \ |
39 |
| - --metadata-file=metadata.yaml \ |
40 |
| - --css https://raw.githubusercontent.com/simov/markdown-viewer/master/themes/github.css \ |
41 |
| - -s README.md manual/*.md \ |
42 |
| - -o rendeiro-lab_manual.pdf |
43 |
| -``` |
| 20 | +Styling for the manual is controlled by a custom [CSS file](assets/style.css), which ensures a nice appearance in both HTML and PDF formats. |
44 | 21 |
|
45 | 22 | ## Editing content
|
46 | 23 |
|
47 |
| -Edit or create files either directly at Github or locally. Make sure you open a pull request with a brief (one line) description of what the changes are. |
| 24 | +To contribute: |
| 25 | +1. Edit or create files directly on GitHub or locally on your system. |
| 26 | +2. Submit a pull request with a clear, one-line description of the changes made. |
| 27 | +3. Follow best practices by adding reviewers and referencing related issues, if applicable. |
| 28 | + |
| 29 | +For adding a table of contents to any document, use [mdformat-toc](https://github.com/hukkin/mdformat-toc). Insert `<!-- mdformat-toc start -->` where the table of contents should appear, and run `mdformat <file.md>` on the edited file, or `make format` to format all. |
48 | 30 |
|
49 |
| -To add a table of contents to each document, use [mdformat-toc](https://github.com/hukkin/mdformat-toc). |
50 |
| -Simply add `<!-- mdformat-toc start -->` to the desired location of the document, and run `mdformat <file.md>` to generate it. |
| 31 | +## Acknowledgements |
51 | 32 |
|
52 |
| -## Sources of inspiration |
| 33 | +We thank the following labs for sharing their open-source lab manuals, which inspired this project: |
53 | 34 |
|
54 |
| -- https://github.com/alylab/labmanual |
55 |
| -- https://github.com/getzlab/getzlab.github.io |
| 35 | +- [Aly Lab Manual](https://github.com/alylab/labmanual) |
| 36 | +- [Getz Lab Manual](https://github.com/getzlab/getzlab.github.io) |
56 | 37 |
|
57 | 38 |
|
58 | 39 | ## TODO
|
59 | 40 |
|
60 |
| -- [ ] Github actions build + deploy |
61 | 41 | - [ ] Add instructions on how to version manual
|
62 | 42 | - [ ] Add to lab website
|
63 | 43 | - [ ] Improve and include [public data page](source/public_data.md)
|
|
0 commit comments