Skip to content

Commit

Permalink
fix SEO Link issue
Browse files Browse the repository at this point in the history
lyie28 committed Nov 13, 2023
1 parent 17435c3 commit e022348
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docs/generate_api_reference.sh
Original file line number Diff line number Diff line change
@@ -5,14 +5,11 @@ set -e # Exit if any command fails
pip install pdoc3

# Generate HTML documentation
pdoc --html --skip-errors --template-dir docs/pdoc_template -o docs/ client/blindai --force
pdoc --html --skip-errors --template-dir docs/pdoc_template -o docs/ client/blindai/audio.py client/blindai/client.py client/blindai/core.py client/blindai/utils.py client/blindai/testing.py --force

# Remove pdoc3 version reference from generated HTML files
sed -i '/<p>Generated by <a href="https:\/\/pdoc3.github.io\/pdoc" title="pdoc: Python API documentation generator"><cite>pdoc<\/cite> 0.10.0<\/a>.<\/p>/d' docs/blindai/*.html

# Add meta description tags to specific HTML files
rm docs/blindai/api.html

sed -i '/<head>/a <meta name="description" content="Use the blindai.audio class for Whisper-powered audio-text conversion, ensure security with Trusted Execution Environments.">' docs/blindai/audio.html
sed -i '/<head>/a <meta name="description" content="Use the blindai.client class for secure AI server connections, model uploads, and inferences. Boost data security with Python client module.">' docs/blindai/client.html
sed -i '/<head>/a <meta name="description" content="Dive into the blindai.core class: Secure server connections, attestation, and privacy-focused features in the BlindAI core module.">' docs/blindai/core.html

0 comments on commit e022348

Please sign in to comment.