Skip to content

Commit dc1af00

Browse files
committed
Initial documentation structure for Unraid plugin development
0 parents  commit dc1af00

16 files changed

Lines changed: 3069 additions & 0 deletions

.github/workflows/pages.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Deploy Jekyll site to Pages
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Ruby
25+
uses: ruby/setup-ruby@v1
26+
with:
27+
ruby-version: '3.1'
28+
bundler-cache: true
29+
30+
- name: Setup Pages
31+
id: pages
32+
uses: actions/configure-pages@v4
33+
34+
- name: Build with Jekyll
35+
run: |
36+
bundle install
37+
bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
38+
env:
39+
JEKYLL_ENV: production
40+
41+
- name: Upload artifact
42+
uses: actions/upload-pages-artifact@v3
43+
44+
deploy:
45+
environment:
46+
name: github-pages
47+
url: ${{ steps.deployment.outputs.page_url }}
48+
runs-on: ubuntu-latest
49+
needs: build
50+
steps:
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# Ruby / Jekyll
7+
_site/
8+
.sass-cache/
9+
.jekyll-cache/
10+
.jekyll-metadata
11+
vendor/
12+
.bundle/
13+
14+
# Editor directories and files
15+
.idea/
16+
.vscode/
17+
*.swp
18+
*.swo
19+
*~
20+
.DS_Store
21+
Thumbs.db
22+
23+
# Logs
24+
*.log
25+
26+
# Temporary files
27+
tmp/
28+
temp/
29+
30+
# Local development
31+
.env
32+
.env.local
33+
34+
# Build outputs
35+
node_modules/
36+
dist/
37+
build/
38+
39+
# Gem locks (for different environments)
40+
Gemfile.lock

CONTRIBUTING.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# Contributing to Unraid Plugin Documentation
2+
3+
Thank you for your interest in contributing! This documentation is a community effort, and we welcome all contributions.
4+
5+
## Ways to Contribute
6+
7+
### Report Issues
8+
9+
Found an error or something unclear? [Open an issue](../../issues) with:
10+
- A clear description of the problem
11+
- The page/section affected
12+
- Suggested correction (if you have one)
13+
14+
### Submit Documentation
15+
16+
Have knowledge to share? Pull requests are welcome:
17+
18+
1. Fork the repository
19+
2. Create a feature branch (`git checkout -b docs/new-section`)
20+
3. Make your changes
21+
4. Submit a pull request
22+
23+
### Review and Feedback
24+
25+
- Review open pull requests
26+
- Test documentation against real plugins
27+
- Suggest improvements in discussions
28+
29+
## Documentation Guidelines
30+
31+
### Writing Style
32+
33+
- **Be concise**: Plugin developers are busy
34+
- **Use examples**: Code speaks louder than words
35+
- **Be accurate**: Test commands and code before documenting
36+
- **Stay current**: Note version requirements when relevant
37+
38+
### Formatting
39+
40+
- Use proper Markdown formatting
41+
- Include code blocks with language hints:
42+
```php
43+
<?php
44+
// PHP code here
45+
?>
46+
```
47+
- Use tables for reference information
48+
- Include diagrams for complex concepts (ASCII art is fine)
49+
50+
### Structure
51+
52+
Each documentation page should have:
53+
54+
1. **Title** - Clear H1 header
55+
2. **Introduction** - Brief overview of the topic
56+
3. **Content** - Main documentation
57+
4. **Examples** - Practical code examples
58+
5. **Next Steps** - Links to related topics
59+
60+
### File Organization
61+
62+
```
63+
docs/
64+
├── introduction.md # Getting started
65+
├── plg-file.md # PLG file reference
66+
├── page-files.md # Page file reference
67+
├── events.md # Event system
68+
├── filesystem.md # File locations
69+
├── [topic].md # Other topics
70+
```
71+
72+
## Code of Conduct
73+
74+
- Be respectful and inclusive
75+
- Focus on constructive feedback
76+
- Help newcomers learn
77+
- Give credit where due
78+
79+
## Questions?
80+
81+
- Open a [discussion](../../discussions) for questions
82+
- Check existing issues before creating new ones
83+
- Tag maintainers if you need help
84+
85+
## License
86+
87+
By contributing, you agree that your contributions will be licensed under the same license as the project (CC BY-SA 4.0 for documentation, MIT for code examples).

Gemfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
source "https://rubygems.org"
2+
3+
gem "jekyll", "~> 4.3"
4+
gem "just-the-docs", "~> 0.8"
5+
gem "jekyll-seo-tag"
6+
gem "jekyll-sitemap"
7+
8+
# Windows and JRuby does not include zoneinfo files
9+
platforms :mingw, :x64_mingw, :mswin, :jruby do
10+
gem "tzinfo", ">= 1", "< 3"
11+
gem "tzinfo-data"
12+
end
13+
14+
# Performance-booster for watching directories on Windows
15+
gem "wdm", "~> 0.1", :platforms => [:mingw, :x64_mingw, :mswin]
16+
17+
# Lock http_parser.rb for JRuby
18+
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]

LICENSE

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Creative Commons Attribution-ShareAlike 4.0 International License
2+
3+
This documentation is licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0).
4+
5+
## You are free to:
6+
7+
- **Share** — copy and redistribute the material in any medium or format
8+
- **Adapt** — remix, transform, and build upon the material for any purpose, even commercially
9+
10+
## Under the following terms:
11+
12+
- **Attribution** — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
13+
14+
- **ShareAlike** — If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.
15+
16+
- **No additional restrictions** — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
17+
18+
## Full License Text
19+
20+
The full license text is available at:
21+
https://creativecommons.org/licenses/by-sa/4.0/legalcode
22+
23+
---
24+
25+
## Code Examples License (MIT)
26+
27+
Code examples within this documentation are provided under the MIT License:
28+
29+
```
30+
MIT License
31+
32+
Copyright (c) 2026 Unraid Plugin Documentation Contributors
33+
34+
Permission is hereby granted, free of charge, to any person obtaining a copy
35+
of this software and associated documentation files (the "Software"), to deal
36+
in the Software without restriction, including without limitation the rights
37+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
38+
copies of the Software, and to permit persons to whom the Software is
39+
furnished to do so, subject to the following conditions:
40+
41+
The above copyright notice and this permission notice shall be included in all
42+
copies or substantial portions of the Software.
43+
44+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
45+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
46+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
47+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
48+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
49+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
50+
SOFTWARE.
51+
```

0 commit comments

Comments
 (0)