Skip to content

Commit

Permalink
Update Sphinx configuration and documentation structure
Browse files Browse the repository at this point in the history
  • Loading branch information
GoMightyAlgorythmGo committed Jun 5, 2024
1 parent 53de091 commit 5bc3651
Show file tree
Hide file tree
Showing 12 changed files with 152 additions and 11 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Generate Changelog

on:
push:
branches:
- main
pull_request:
types: [closed]

jobs:
generate-changelog:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '14'

- name: Install auto-changelog
run: npm install -g auto-changelog

- name: Generate changelog
run: auto-changelog -p
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Commit and push changelog
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add CHANGELOG.md
git commit -m 'Update changelog'
git push
Binary file added .github/workflows/docs.yml
Binary file not shown.
32 changes: 32 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build and Deploy Documentation

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install sphinx sphinx_rtd_theme
- name: Build documentation
run: sphinx-build -b html docs/ docs/_build/html

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html
6 changes: 3 additions & 3 deletions .github/workflows/repo-maintenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ jobs:
- name: Use BFG Repo-Cleaner
run: |
java -jar /path/to/bfg.jar --strip-blobs-bigger-than 100M .
java -jar /path/to/bfg.jar --delete-files '0cdcac6eb1aa268b98e2cc30f80a183e2bc81dba' .
java -jar /path/to/bfg.jar --delete-files '5b44edb4c90a21f3f2ccc3f50411ac1825f8cc0b' .
java -jar ${{ github.workspace }}/bfg.jar --strip-blobs-bigger-than 100M .
java -jar ${{ github.workspace }}/bfg.jar --delete-files '0cdcac6eb1aa268b98e2cc30f80a183e2bc81dba' .
java -jar ${{ github.workspace }}/bfg.jar --delete-files '5b44edb4c90a21f3f2ccc3f50411ac1825f8cc0b' .
- name: Clean up repository
run: |
Expand Down
63 changes: 63 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,66 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
- Monitor and address any issues in GitHub Actions.
- Continue developing and refining the model.
- Regularly update documentation.


Updated on: 2024-06-03 16:28:58


Updated on: 2024-06-03 16:31:44


Updated on: 2024-06-04 07:53:35


Updated on: 2024-06-04 07:56:09


Updated on: 2024-06-04 07:59:17


Updated on: 2024-06-04 07:59:31


Updated on: 2024-06-04 08:04:11


Updated on: 2024-06-05 00:02:01


Updated on: 2024-06-05 00:07:20


Updated on: 2024-06-05 00:12:53


Updated on: 2024-06-05 00:20:27


Updated on: 2024-06-05 00:24:24


Updated on: 2024-06-05 00:25:37


Updated on: 2024-06-05 00:28:56


Updated on: 2024-06-05 00:37:46


Updated on: 2024-06-05 00:38:21


Updated on: 2024-06-05 00:39:36


Updated on: 2024-06-05 00:40:42


Updated on: 2024-06-05 00:41:55


Updated on: 2024-06-05 08:51:19


Updated on: 2024-06-05 09:06:02
Binary file added docs/conf.py
Binary file not shown.
Binary file added docs/index.rst
Binary file not shown.
6 changes: 6 additions & 0 deletions execution_log.txt

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion my_project
Submodule my_project deleted from df1e9a
Binary file modified pj_log_15_5_24____.txt
Binary file not shown.
5 changes: 5 additions & 0 deletions remove_bom.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
with open('notebooks/model_building.ipynb', 'r', encoding='utf-8-sig') as file:
content = file.read()
with open('notebooks/model_building.ipynb', 'w', encoding='utf-8') as file:
file.write(content)
14 changes: 7 additions & 7 deletions scripts/verify_trello.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
import requests
import os

TRELLO_API_KEY = os.getenv("TRELLO_API_KEY")
TRELLO_API_TOKEN = os.getenv("TRELLO_API_TOKEN")
TRELLO_API_KEY = os.getenv('TRELLO_API_KEY')
TRELLO_API_TOKEN = os.getenv('TRELLO_API_TOKEN')

def verify_trello_credentials():
url = f"https://api.trello.com/1/members/me/boards?key={TRELLO_API_KEY}&token={TRELLO_API_TOKEN}"
url = f'https://api.trello.com/1/members/me/boards?key={TRELLO_API_KEY}&token={TRELLO_API_TOKEN}'
response = requests.get(url)
if response.status_code == 200:
print("Success!")
print('Success!')
print(response.json())
else:
print("Failed to verify credentials")
print(f"Status Code: {response.status_code}")
print(f"Response Text: {response.text}")
print('Failed to verify credentials')
print(f'Status Code: {response.status_code}')
print(f'Response Text: {response.text}')

if __name__ == "__main__":
verify_trello_credentials()

0 comments on commit 5bc3651

Please sign in to comment.