Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Mkdocs Project Documentation #141

Merged
merged 67 commits into from
Jun 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
58d3451
docs: add ENVIROMENTS
AntonioMrtz May 24, 2024
5e7378c
docs: add mkdocs structure with enviroment and git convention files
AntonioMrtz May 24, 2024
dd0dc3d
ci: add generate docs pipeline
AntonioMrtz May 24, 2024
8db7780
ci: fix requirement install generate docs workflow
AntonioMrtz May 24, 2024
5a0cf19
docs: publish docs into gh-pages
AntonioMrtz May 24, 2024
b3448ed
docs: add nested bullet lists to mkdocsp
AntonioMrtz May 24, 2024
b520e81
docs: add nested bullet lists to mkdocs
AntonioMrtz May 24, 2024
2102e90
docs: add branch info for git convention
AntonioMrtz May 24, 2024
d3c6e6a
ci: only trigger docs build when branch is closed
AntonioMrtz May 24, 2024
e86e803
docs: add package app and fix setup frontend
AntonioMrtz May 24, 2024
4188fc2
docs: add missing architecture section links in Enviroment
AntonioMrtz May 24, 2024
e7e4d5e
docs: add placeholder files for new docs
AntonioMrtz May 24, 2024
0fb4dfd
docs: add docker
AntonioMrtz May 25, 2024
800759a
docs: add ci/cd
AntonioMrtz May 25, 2024
512f5a3
docs: add Frontend FAQ
AntonioMrtz May 25, 2024
ddc717d
docs: add contributing info on selecting issue and general message fr…
AntonioMrtz May 31, 2024
7785d39
docs: update renamed lambda to streaming_serverless_function and remo…
AntonioMrtz Jun 4, 2024
3f0d09b
Added health endpoint and related tests, modified authentication midd…
xiomaraR May 28, 2024
6a8d4f1
Initial commit
xiomaraR May 28, 2024
0e066bd
Reverted change in imports to commit 3ef4f8c, restored .env.local fil…
xiomaraR May 29, 2024
f2176b2
Revert to c33e29a - fix: restore timezone.UTC from datetime.UTC
xiomaraR Jun 3, 2024
c6a92c9
docs: add mkdocs structure with enviroment and git convention files
AntonioMrtz May 24, 2024
b39ee92
fix: rebase issues of docs
AntonioMrtz Jun 4, 2024
c6556a9
Initial commit
xiomaraR May 28, 2024
fc2b4a7
docs: add improved draw.io architectures and restructure docs and ass…
AntonioMrtz Jun 6, 2024
cad6c06
docs: add ENVIROMENTS
AntonioMrtz May 24, 2024
d93dcb1
docs: add mkdocs structure with enviroment and git convention files
AntonioMrtz May 24, 2024
024e860
ci: add generate docs pipeline
AntonioMrtz May 24, 2024
7a59ebe
ci: fix requirement install generate docs workflow
AntonioMrtz May 24, 2024
605efbb
docs: publish docs into gh-pages
AntonioMrtz May 24, 2024
4421241
docs: add nested bullet lists to mkdocsp
AntonioMrtz May 24, 2024
a5ed254
docs: add nested bullet lists to mkdocs
AntonioMrtz May 24, 2024
daf5df2
docs: add branch info for git convention
AntonioMrtz May 24, 2024
2191734
ci: only trigger docs build when branch is closed
AntonioMrtz May 24, 2024
d7c9b83
docs: add package app and fix setup frontend
AntonioMrtz May 24, 2024
66024d6
docs: add missing architecture section links in Enviroment
AntonioMrtz May 24, 2024
a48d8fe
docs: add placeholder files for new docs
AntonioMrtz May 24, 2024
2de1cce
docs: add docker
AntonioMrtz May 25, 2024
abe84d9
docs: add ci/cd
AntonioMrtz May 25, 2024
5f4acd9
docs: add Frontend FAQ
AntonioMrtz May 25, 2024
d8bff09
docs: add contributing info on selecting issue and general message fr…
AntonioMrtz May 31, 2024
99a205c
docs: update renamed lambda to streaming_serverless_function and remo…
AntonioMrtz Jun 4, 2024
8541bcd
Initial commit
xiomaraR May 28, 2024
db09de6
docs: add mkdocs structure with enviroment and git convention files
AntonioMrtz May 24, 2024
d801302
fix: rebase issues of docs
AntonioMrtz Jun 4, 2024
ebf92f3
Initial commit
xiomaraR May 28, 2024
4574f90
docs: add improved draw.io architectures and restructure docs and ass…
AntonioMrtz Jun 6, 2024
4f395a2
Merge branch 'docs/Project-Documentation' of https://github.com/Anton…
AntonioMrtz Jun 6, 2024
ecb2b2f
fix: update __main__ with latest version after pull from main error
AntonioMrtz Jun 6, 2024
ff84c02
style: sort missing import
AntonioMrtz Jun 6, 2024
3fda716
Merge branch 'master' into docs/Project-Documentation
AntonioMrtz Jun 10, 2024
ae1bef3
Merge branch 'master' into docs/Project-Documentation
AntonioMrtz Jun 12, 2024
449c6fb
feat: pre-commit docs and config on root folder
AntonioMrtz Jun 18, 2024
51a3557
Merge branch 'master' of https://github.com/AntonioMrtz/SpotifyElectr…
AntonioMrtz Jun 18, 2024
80f42af
docs: add global set up and move lintin/formatting to its own files
AntonioMrtz Jun 18, 2024
e4dbde8
docs: fix bullet point list global setup
AntonioMrtz Jun 18, 2024
f8c39b8
revert: remove requirements-pre-commit, using requirements global ins…
AntonioMrtz Jun 18, 2024
b522812
docs: fix typos and missing emojis
AntonioMrtz Jun 18, 2024
9baf6b4
docs: remoce cicd section from backend and improve linting and format…
AntonioMrtz Jun 18, 2024
d43ad2f
Merge branch 'master' into docs/Project-Documentation
AntonioMrtz Jun 19, 2024
15156ad
docs: improve backend tests coverage only app folder
AntonioMrtz Jun 22, 2024
748544c
docs: backend tests Develop tests
AntonioMrtz Jun 22, 2024
ed80856
docs: minor improvements
AntonioMrtz Jun 22, 2024
75f4032
docs: rename todos to WIP
AntonioMrtz Jun 22, 2024
7a538d0
docs: add frontend file structure
AntonioMrtz Jun 22, 2024
296cd23
fix: __tests__ folder recognized as md style
AntonioMrtz Jun 22, 2024
33a06e0
docs: add architecture
AntonioMrtz Jun 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions .github/CONTRIBUTING.md

This file was deleted.

24 changes: 13 additions & 11 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

title: ""
labels: ""
assignees: ""
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
Expand All @@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
7 changes: 3 additions & 4 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

title: ""
labels: ""
assignees: ""
---

## Description
Expand Down
4 changes: 2 additions & 2 deletions .github/disabled_workflows/backend-black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Backend Run Black style
on:
pull_request:
branches:
- 'master'
- 'master-*'
- "master"
- "master-*"

jobs:
run_tests:
Expand Down
34 changes: 17 additions & 17 deletions .github/disabled_workflows/enforce-branch-name.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,29 @@ name: Enforce Branch Naming
on:
create:
branches:
- '*'
- "*"

jobs:
enforce-branch-naming:
permissions: write-all
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v2

- name: Check branch name format
id: check_branch
run: |
branch_name=$(echo "${GITHUB_REF#refs/heads/}")
if [[ ! "$branch_name" =~ (^(feat|fix|refactor|docs|chore|test|style|build|ci|perf|revert)\/.*)|(master\-.*)|(dependabot\-.*) ]]; then
echo "Branch name doesn't match the required format."
exit 1
fi
- name: Check branch name format
id: check_branch
run: |
branch_name=$(echo "${GITHUB_REF#refs/heads/}")
if [[ ! "$branch_name" =~ (^(feat|fix|refactor|docs|chore|test|style|build|ci|perf|revert)\/.*)|(master\-.*)|(dependabot\-.*) ]]; then
echo "Branch name doesn't match the required format."
exit 1
fi

- name: Delete branch if fail
if: ${{ failure() }}
uses: dawidd6/action-delete-branch@v3
with:
github_token: ${{github.token}}
branches: ${{ github.ref_name }}
- name: Delete branch if fail
if: ${{ failure() }}
uses: dawidd6/action-delete-branch@v3
with:
github_token: ${{github.token}}
branches: ${{ github.ref_name }}
68 changes: 34 additions & 34 deletions .github/disabled_workflows/generate-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,41 +11,41 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout del repositorio
uses: actions/checkout@v2
with:
persist-credentials: false
token: ${{ secrets.PAT }}
- name: Checkout del repositorio
uses: actions/checkout@v2
with:
persist-credentials: false
token: ${{ secrets.PAT }}

- name: Configurar Python
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Configurar Python
uses: actions/setup-python@v2
with:
python-version: 3.11

- name: Install dependencies
working-directory: Backend/
run: |
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python generate-docs.py
env:
MONGO_URI : ${{ secrets.MONGO_URI }}
SECRET_KEY_SIGN : ${{ secrets.SECRET_KEY_SIGN }}
SERVERLESS_FUNCTION_URL : ${{ secrets.SERVERLESS_FUNCTION_URL }}
ARCH : ${{ secrets.ARCH }}
ENV_VALUE : ${{ secrets.ENV_VALUE }}
- name: Install dependencies
working-directory: Backend/
run: |
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python generate-docs.py
env:
MONGO_URI : ${{ secrets.MONGO_URI }}
SECRET_KEY_SIGN : ${{ secrets.SECRET_KEY_SIGN }}
SERVERLESS_FUNCTION_URL : ${{ secrets.SERVERLESS_FUNCTION_URL }}
ARCH : ${{ secrets.ARCH }}
ENV_VALUE : ${{ secrets.ENV_VALUE }}

- name: Add and commit changes
working-directory: Backend/
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git add api-docs-spotify-electron.html
git commit -m "docs : Update API documentation"
- name: Add and commit changes
working-directory: Backend/
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git add api-docs-spotify-electron.html
git commit -m "docs : Update API documentation"

- name: Pushing to the protected branch 'protected'
uses: CasperWA/push-protected@v2
with:
token: ${{ secrets.PAT }}
branch: ${{ github.base_ref }}
- name: Pushing to the protected branch 'protected'
uses: CasperWA/push-protected@v2
with:
token: ${{ secrets.PAT }}
branch: ${{ github.base_ref }}
1 change: 1 addition & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
## Tests Performed

- [] Test performed <!-- Check if performed - [✅ | ❎] Test performed -->

## Screenshots

<!-- If applicable, provide screenshots that help visualize the changes made. -->
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/eslintrc-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@ name: Eslintrc Check
on:
pull_request:
branches:
- 'master'
- 'master-*'
- "master"
- "master-*"

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v2
- name: Check out code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "20"

- name: Change directory and run commands
working-directory: Electron
run: |
npm install
npm run lint
- name: Change directory and run commands
working-directory: Electron
run: |
npm install
npm run lint
26 changes: 13 additions & 13 deletions .github/workflows/frontend-style-prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@ name: Frontend Style Prettier
on:
pull_request:
branches:
- 'master'
- 'master-*'
- "master"
- "master-*"

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v2
- name: Check out code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "20"

- name: Change directory and run commands
working-directory: Electron
run: |
npm install
npm run format:check
- name: Change directory and run commands
working-directory: Electron
run: |
npm install
npm run format:check
28 changes: 14 additions & 14 deletions .github/workflows/frontend-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@ name: Frontend Tests
on:
pull_request:
branches:
- 'master'
- 'master-*'
- "master"
- "master-*"

jobs:
build:
runs-on: ubuntu-22.04

steps:
- name: Check out code
uses: actions/checkout@v4
- name: Check out code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Change directory and run commands
working-directory: Electron
run: |
npm install
npm run build
npm test
- name: Change directory and run commands
working-directory: Electron
run: |
npm install
npm run build
npm test
29 changes: 29 additions & 0 deletions .github/workflows/generate-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Generate Docs

on:
pull_request:
types: [closed]

permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install -r requirements-docs.txt
- run: mkdocs gh-deploy --force
Loading