Skip to content

Commit 241ff28

Browse files
committed
fix: use mike wip; update contributors
fix: rename fix: mike config fix: macros config wip fix: resolve warnings fix: add template schema
1 parent 34f0405 commit 241ff28

28 files changed

Lines changed: 1626 additions & 1997 deletions
Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,30 @@
1-
name: Docs
1+
name: Deploy MkDocs
22

33
on:
44
push:
5-
branches: [master]
5+
branches:
6+
- master
7+
- dev
8+
- feature/mkdocs-debug # temp
9+
610
pull_request:
711
branches: [master]
812

913
permissions:
1014
contents: write
1115

16+
env:
17+
IS_NOT_A_FORK: ${{ github.event.pull_request.head.repo.fork == false }}
18+
IS_PULL_REQUEST: ${{ github.event_name == 'pull_request' }}
19+
IS_PUSH: ${{ github.event_name == 'push' }}
20+
BRANCH_NAME: ${{ github.ref_name }}
21+
IS_MASTER: ${{ BRANCH_NAME == 'master' }}
22+
IS_DEV: ${{ BRANCH_NAME == 'dev' }}
23+
MIKE_DEPLOY_VERSION: ${{ $IS_MASTER && '1.x' || ($IS_DEV && '2.x' || '$BRANCH_NAME') }}
24+
1225
jobs:
1326
deploy:
27+
if: ${{ ($IS_PUSH || $IS_NOT_A_FORK) && $MIKE_DEPLOY_VERSION != '' }}
1428
runs-on: ubuntu-latest
1529

1630
steps:
@@ -38,4 +52,4 @@ jobs:
3852
path: .cache
3953
restore-keys: mkdocs-material-
4054

41-
- run: uv run mkdocs gh-deploy --force
55+
- run: uv run mike deploy "$MIKE_DEPLOY_VERSION"

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
!docs/overrides/.icons
99

1010
# mkdocs generated site
11-
docs/site
11+
site/
1212

1313
# Everything in inputs/ and outputs/
1414
inputs/*

CONTRIBUTING.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,23 @@ Also, try to use commits with [conventional messages](https://www.conventionalco
1515

1616

1717
# Code Formatting
18-
Before committing your code, make sure to run the following command to format your code according to the PEP8 style guide:
19-
```.sh
20-
pip install -r requirements.dev.txt && pre-commit install
18+
Make sure to run uv ruff check (with optionally --fix) to format your code
19+
```
20+
uv ruff check
2121
```
2222

23-
Run `pre-commit` before committing your changes:
24-
```.sh
25-
git add .
26-
pre-commit run -a
23+
# Documentation
24+
- Update Contributors.md file with your name
25+
- Any changes in the functionality of the tool, especially in the configuration schema should be documented. For documentation we are using mike(internally uses mkdocs).
26+
- To view documentation site locally, use mike:
27+
```bash
28+
# https://github.com/mkdocs-material/example-versioning/blob/master/README.md
29+
# List versions -
30+
uv run mike list
31+
# Update and commit given version's docs in the gh-pages branch
32+
uv run mike deploy <version>
33+
# Serve the docs
34+
uv run mike serve
2735
```
2836

2937
# Where to contribute from

Contributors.md

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,35 @@
11
# Contributors
22

3-
- [Udayraj123](https://github.com/Udayraj123)
4-
- [leongwaikay](https://github.com/leongwaikay)
5-
- [deepakgouda](https://github.com/deepakgouda)
6-
- [apurva91](https://github.com/apurva91)
7-
- [sparsh2706](https://github.com/sparsh2706)
8-
- [namit2saxena](https://github.com/namit2saxena)
9-
- [Harsh-Kapoorr](https://github.com/Harsh-Kapoorr)
10-
- [Sandeep-1507](https://github.com/Sandeep-1507)
11-
- [SpyzzVVarun](https://github.com/SpyzzVVarun)
12-
- [asc249](https://github.com/asc249)
133
- [05Alston](https://github.com/05Alston)
4+
- [aayushibansal2001](https://github.com/aayushibansal2001)
145
- [Antibodyy](https://github.com/Antibodyy)
6+
- [apurva91](https://github.com/apurva91)
7+
- [aqoshi](https://github.com/aqoshi)
8+
- [asc249](https://github.com/asc249)
9+
- [benjiforster](https://github.com/benjiforster)
10+
- [deepakgouda](https://github.com/deepakgouda)
11+
- [Drita-ai](https://github.com/Drita-ai)
12+
- [Dxuian](https://github.com/Dxuian)
13+
- [gaursagar21](https://github.com/gaursagar21)
14+
- [Harsh-Kapoorr](https://github.com/Harsh-Kapoorr)
1515
- [infinity1729](https://github.com/infinity1729)
16-
- [Rohan-G](https://github.com/Rohan-G)
17-
- [UjjwalMahar](https://github.com/UjjwalMahar)
16+
- [juliangilbey](https://github.com/juliangilbey)
1817
- [Kurtsley](https://github.com/Kurtsley)
19-
- [gaursagar21](https://github.com/gaursagar21)
20-
- [aayushibansal2001](https://github.com/aayushibansal2001)
21-
- [ShamanthVallem](https://github.com/ShamanthVallem)
22-
- [rudrapsc](https://github.com/rudrapsc)
18+
- [leongwaikay](https://github.com/leongwaikay)
19+
- [namit2saxena](https://github.com/namit2saxena)
2320
- [palash018](https://github.com/palash018)
21+
- [pixalquarks](https://github.com/pixalquarks)
22+
- [Princekumarofficial](https://github.com/Princekumarofficial)
23+
- [Rohan-G](https://github.com/Rohan-G)
24+
- [rudrapsc](https://github.com/rudrapsc)
25+
- [samuelIkoli](https://github.com/samuelIkoli)
26+
- [Sandeep-1507](https://github.com/Sandeep-1507)
27+
- [sandptel](https://github.com/sandptel)
28+
- [ShamanthVallem](https://github.com/ShamanthVallem)
29+
- [sparsh2706](https://github.com/sparsh2706)
30+
- [SpyzzVVarun](https://github.com/SpyzzVVarun)
31+
- [theranjitraut](https://github.com/theranjitraut)
32+
- [Udayraj123](https://github.com/Udayraj123)
33+
- [UjjwalMahar](https://github.com/UjjwalMahar)
34+
35+
[Github Contributors](https://github.com/Udayraj123/OMRChecker/graphs/contributors)

README.md

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ OMR stands for Optical Mark Recognition, used to detect and interpret human-mark
2323
<!-- [![GitHub contributors](https://img.shields.io/github/contributors/Udayraj123/OMRChecker.svg)](https://GitHub.com/Udayraj123/OMRChecker/graphs/contributors/) -->
2424

2525
[![GitHub stars](https://img.shields.io/github/stars/Udayraj123/OMRChecker.svg?style=social&label=Stars✯)](https://GitHub.com/Udayraj123/OMRChecker/stargazers/)
26-
[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FUdayraj123%2FOMRChecker&count_bg=%2379C83D&title_bg=%23555555&icon=googlecast.svg&icon_color=%23E7E7E7&title=hits%2829.09.2022%29&edge_flat=false)](https://hits.seeyoufarm.com)
27-
[![Join](https://img.shields.io/badge/Join-Discord_group-purple.svg?style=flat-square)](https://discord.gg/qFv2Vqf)
26+
<!-- [![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FUdayraj123%2FOMRChecker&count_bg=%2379C83D&title_bg=%23555555&icon=googlecast.svg&icon_color=%23E7E7E7&title=hits%2829.09.2022%29&edge_flat=false)](https://hits.seeyoufarm.com) -->
27+
2828

2929
<!-- [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/gist/Udayraj123/a125b1531c61cceed5f06994329cba66/omrchecker-on-cloud.ipynb) -->
3030

@@ -241,8 +241,6 @@ This project was born out of a student-led organization called as [Technothlon](
241241

242242
We believe in the power of open source! Currently, OMRChecker is in an intermediate stage where only developers can use it. We hope to see it become more user-friendly as well as robust from exposure to different inputs from you all!
243243

244-
[![Open Source](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)
245-
246244
</details>
247245

248246
<details>
@@ -252,33 +250,19 @@ We believe in the power of open source! Currently, OMRChecker is in an intermedi
252250

253251
OMRChecker can be forked and modified. You are encouraged to play with it and we would love to see your own projects in action!
254252

255-
It is published under the [MIT license](https://github.com/Udayraj123/OMRChecker/blob/master/LICENSE).
253+
It is published under the MIT license.
256254

257255
</details>
258256

259-
<details>
260-
<summary>
261-
<b>What are the ways to contribute?</b>
262-
</summary>
263-
264-
- Join the developer community on [Discord](https://discord.gg/qFv2Vqf) to fix [issues](https://github.com/Udayraj123/OMRChecker/issues) with OMRChecker.
265-
266-
- If this project saved you some costs on OMR Software licenses, or saved efforts to make one. Consider donating an amount of your choice(donate section).
267-
268-
<!-- ![☕](https://miro.medium.com/fit/c/256/256/1*br7aoq_JVfxeg73x5tF_Sw.png) -->
269-
<!-- [![paypal.me](https://www.paypalobjects.com/en_GB/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z5BNNK7AVFVH8&source=url) -->
270-
<!-- https://www.amazon.in/hz/wishlist/ls/3V0TDQBI3T8IL -->
271-
272-
</details>
273257

274258
## Credits
275259

276260
_A Huge thanks to:_
277-
_**Adrian Rosebrock** for his exemplary blog:_ https://pyimagesearch.com
261+
_**Adrian Rosebrock** for his exemplary blog:_ [https://pyimagesearch.com](https://pyimagesearch.com)
278262

279263
_**Harrison Kinsley** aka sentdex for his [video tutorials](https://www.youtube.com/watch?v=Z78zbnLlPUA&list=PLQVvvaa0QuDdttJXlLtAJxJetJcqmqlQq) and many other resources._
280264

281-
_**Satya Mallic** for his resourceful blog:_ https://www.learnopencv.com
265+
_**Satya Mallic** for his resourceful blog:_ [https://www.learnopencv.com](https://www.learnopencv.com)
282266

283267
_And to other amazing people from all over the globe who've made significant improvements in this project._
284268

@@ -294,6 +278,9 @@ Here's a snapshot of the [Android OMR Helper App (archived)](https://github.com/
294278
</a>
295279
</p>
296280

281+
## External Links
282+
- Deepwiki Docs(Devin): [https://deepwiki.com/Udayraj123/OMRChecker](https://deepwiki.com/Udayraj123/OMRChecker)
283+
297284
## Stargazers over time
298285

299286
[![Stargazers over time](https://starchart.cc/Udayraj123/OMRChecker.svg)](https://starchart.cc/Udayraj123/OMRChecker)
-103 KB
Binary file not shown.
-72.6 KB
Binary file not shown.
Binary file not shown.
-56.9 KB
Binary file not shown.

docs/assets/images/favicon.png

-1.28 KB
Binary file not shown.

0 commit comments

Comments
 (0)