Debian Codegraph @

texmf-dist/doc/latex/moloch/CONTRIBUTING.md

raw
1 # Contributing to Moloch
2
3 Thank you for your interest in contributing to Moloch! This document provides
4 guidelines for contributing to the project.
5
6 ## Prerequisites
7
8 - Git
9 - LaTeX distribution (TeX Live or MiKTeX)
10 - [l3build](https://ctan.org/pkg/l3build) (LaTeX build tool)
11
12 **Note**: A Nix flake is available for convenience if you prefer a reproducible development environment. Simply run `nix develop` to get all dependencies automatically. When using Nix, use `l3build-wrapped` instead of `l3build` for all commands.
13
14 ## Getting Started
15
16 1. Fork and clone the repository:
17
18 ```bash
19 git clone https://github.com/YOUR_USERNAME/moloch.git
20 cd moloch
21 ```
22
23 2. If using Nix (optional):
24
25 ```bash
26 nix develop
27 ```
28
29 ## Development Workflow
30
31 ### Making Changes
32
33 1. **Create a feature branch**:
34
35 ```bash
36 git checkout -b feature/your-feature-name
37 ```
38
39 2. **Edit source files**:
40 - Theme code: Edit `.dtx` files in `src/` (not `.sty` files - they're
41 generated)
42 - Documentation: Edit `docs/index.md`
43 - Tests: Add/modify `.lvt` files in `testfiles/`
44
45 3. **Build documentation**:
46
47 ```bash
48 task build-manual
49 # Or manually: l3build doc
50 ```
51
52 4. **Run tests**:
53
54 ```bash
55 l3build check
56 ```
57
58 5. **Test CTAN build**:
59 ```bash
60 l3build ctan -q -H --show-log-on-error
61 ```
62
63 ### Updating Tests
64
65 If you intentionally change output, update the test expectations:
66
67 ```bash
68 l3build save <testname>
69 ```
70
71 ### Documentation Changes
72
73 - User manual: Edit `docs/index.md`
74 - Implementation docs: Extracted from `.dtx` files via
75 `texlua scripts/extract-dtx-docs.lua`
76
77 ## Commit Guidelines
78
79 We use [Conventional Commits](https://www.conventionalcommits.org/) for
80 automated versioning:
81
82 - `feat:` - New features (minor version bump)
83 - `fix:` - Bug fixes (patch version bump)
84 - `docs:` - Documentation changes
85 - `refactor:` - Code refactoring
86 - `test:` - Test changes
87 - `chore:` - Build/tooling changes
88
89 Example:
90
91 ```bash
92 git commit -m "feat: add new color theme option"
93 git commit -m "fix: correct frame title alignment"
94 ```
95
96 ## Submitting Changes
97
98 1. **Ensure all tests pass**:
99
100 ```bash
101 l3build check
102 ```
103
104 2. **Push your branch**:
105
106 ```bash
107 git push origin feature/your-feature-name
108 ```
109
110 3. **Open a Pull Request** on GitHub
111
112 4. **CI will run** build and test workflows automatically
113
114 ## Project Structure
115
116 - `src/` - Theme implementation (`.dtx` documented sources)
117 - `docs/` - Documentation source (Quarto markdown) and generated outputs
118 - `testfiles/` - Test suite
119 - `examples/` - Example presentations
120 - `build.lua` - l3build configuration
121
122 ## Getting Help
123
124 - Join the [discussions board](https://github.com/jolars/moloch/discussions) for questions and community support
125 - Open an [issue](https://github.com/jolars/moloch/issues) for bug reports or feature requests
126 - Check existing issues and discussions before creating new ones
127
128 **Note**: Moloch is a minimalistic theme. We do not reimplement functionality that's easily achievable through standard Beamer commands. Please check the Beamer documentation before requesting new features.
129
130 ## License
131
132 By contributing, you agree that your contributions will be licensed under the
133 [Creative Commons Attribution-ShareAlike 4.0 International License](LICENSE).