pype -> openpype in tools and scripts

This commit is contained in:
Ondrej Samohel 2021-04-01 15:02:44 +02:00
parent a6dc83aa13
commit 69cafcddda
No known key found for this signature in database
GPG key ID: 02376E18990A97C6
26 changed files with 289 additions and 321 deletions

View file

@ -1,9 +1,9 @@
<#
.SYNOPSIS
Helper script to update Pype Sphinx sources.
Helper script to update OpenPype Sphinx sources.
.DESCRIPTION
This script will run apidoc over Pype sources and generate new source rst
This script will run apidoc over OpenPype sources and generate new source rst
files for documentation. Then it will run build_sphinx to create test html
documentation build.
@ -15,33 +15,31 @@ PS> .\make_docs.ps1
$current_dir = Get-Location
$script_dir = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent
$pype_root = (Get-Item $script_dir).parent.FullName
Set-Location -Path $pype_root
$openpype_root = (Get-Item $script_dir).parent.FullName
Set-Location -Path $openpype_root
$art = @"
____________
/\ ___ \
\ \ \/_\ \
\ \ _____/ ______ ___ ___ ___
\ \ \___/ /\ \ \ \\ \\ \
\ \____\ \ \_____\ \__\\__\\__\
\/____/ \/_____/ . PYPE Club .
.---= [ by Pype Club ] =---.
https://openpype.io
"@
Write-Host $art -ForegroundColor DarkGreen
Write-Host "This will not overwrite existing source rst files, only scan and add new."
Set-Location -Path $pype_root
Set-Location -Path $openpype_root
Write-Host ">>> " -NoNewline -ForegroundColor green
Write-Host "Running apidoc ..."
& poetry run sphinx-apidoc -M -e -d 10 --ext-intersphinx --ext-todo --ext-coverage --ext-viewcode -o "$($pype_root)\docs\source" igniter
& poetry run sphinx-apidoc.exe -M -e -d 10 --ext-intersphinx --ext-todo --ext-coverage --ext-viewcode -o "$($pype_root)\docs\source" pype vendor, pype\vendor
& poetry run sphinx-apidoc -M -e -d 10 --ext-intersphinx --ext-todo --ext-coverage --ext-viewcode -o "$($openpype_root)\docs\source" igniter
& poetry run sphinx-apidoc.exe -M -e -d 10 --ext-intersphinx --ext-todo --ext-coverage --ext-viewcode -o "$($openpype_root)\docs\source" openpype vendor, openpype\vendor
Write-Host ">>> " -NoNewline -ForegroundColor green
Write-Host "Building html ..."
& poetry run python "$($pype_root)\setup.py" build_sphinx
& poetry run python "$($openpype_root)\setup.py" build_sphinx
Set-Location -Path $current_dir