Skip to content

Commit

Permalink
website integration
Browse files Browse the repository at this point in the history
  • Loading branch information
otmanon committed Oct 25, 2023
1 parent fa12ef3 commit 790703a
Show file tree
Hide file tree
Showing 58 changed files with 464 additions and 81 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build_site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish docs via GitHub Pages
on:
push:
branches:
- main

jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- name: Checkout main
uses: actions/checkout@v2

- name: Build wheels
shell: bash -l {0}
run: |
bash docs/create_docs.sh
# NOT SURE HOW TO AUTOMATE VERSIONING, RUNNING THIS WILL WIPE EVERYTHING
# - name: Deploy docs
# uses: mhausenblas/mkdocs-deploy-gh-pages@master
# # Or use mhausenblas/mkdocs-deploy-gh-pages@nomaterial to build without the mkdocs-material theme
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# # CUSTOM_DOMAIN: optionaldomain.com
# CONFIG_FILE: mkdocs.yml
# # EXTRA_PACKAGES: mkdocstrings
# # GITHUB_DOMAIN: github.myenterprise.com
# REQUIREMENTS: docs/requirements.txt
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ src/fast_cd/examples/__pycache__/*
src/fast_cd/apps/__pycache__/*

results/**
**.ini
**.ini

site/*
site/**
5 changes: 5 additions & 0 deletions docs/apps/animate_rig.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "apps.animate_rig"
---

::: src.fast_cd.apps.animate_rig
5 changes: 5 additions & 0 deletions docs/apps/cd_demo_pose_tracker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "apps.cd_demo_pose_tracker"
---

::: src.fast_cd.apps.cd_demo_pose_tracker
5 changes: 5 additions & 0 deletions docs/apps/interactive_cd_affine_handle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "apps.interactive_cd_affine_handle"
---

::: src.fast_cd.apps.interactive_cd_affine_handle
5 changes: 5 additions & 0 deletions docs/apps/interactive_cd_face_tracking.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "apps.interactive_cd_face_tracking"
---

::: src.fast_cd.apps.interactive_cd_face_tracking
5 changes: 5 additions & 0 deletions docs/apps/interactive_cd_rig_anim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "apps.interactive_cd_rig_anim"
---

::: src.fast_cd.apps.interactive_cd_rig_anim
5 changes: 5 additions & 0 deletions docs/apps/test_FAST_IK.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "apps.test_FAST_IK"
---

::: src.fast_cd.apps.test_FAST_IK
5 changes: 5 additions & 0 deletions docs/apps/test_FAST_IK_CD_tex.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "apps.test_FAST_IK_CD_tex"
---

::: src.fast_cd.apps.test_FAST_IK_CD_tex
5 changes: 5 additions & 0 deletions docs/apps/test_FAST_IK_tex.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "apps.test_FAST_IK_tex"
---

::: src.fast_cd.apps.test_FAST_IK_tex
5 changes: 5 additions & 0 deletions docs/arap_hessian.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "arap_hessian"
---

::: src.fast_cd.arap_hessian
5 changes: 5 additions & 0 deletions docs/average_onto_simplex.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "average_onto_simplex"
---

::: src.fast_cd.average_onto_simplex
5 changes: 5 additions & 0 deletions docs/closest_orthogonal_subspace.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "closest_orthogonal_subspace"
---

::: src.fast_cd.closest_orthogonal_subspace
5 changes: 5 additions & 0 deletions docs/cluster_centroids.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "cluster_centroids"
---

::: src.fast_cd.cluster_centroids
5 changes: 5 additions & 0 deletions docs/cluster_grouping_matrices.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "cluster_grouping_matrices"
---

::: src.fast_cd.cluster_grouping_matrices
5 changes: 5 additions & 0 deletions docs/complementary_constraint_matrix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "complementary_constraint_matrix"
---

::: src.fast_cd.complementary_constraint_matrix
45 changes: 45 additions & 0 deletions docs/create_docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/bin/bash
#Delete everything in docs except for index.md
shopt -s nullglob
for file in docs/*.md; do
name=$(basename "$file")
if ! [ "$name" = "index.md" ]; then
rm "$file"
fi
done
#Delete everything in docs subdirectories except for index.md
shopt -s nullglob
for file in docs/*/*.md; do
name=$(basename "$file")
if ! [ "$name" = "index.md" ]; then
rm "$file"
fi
done
#For all files not in a module
shopt -s nullglob
for file in src/fast_cd/*.py; do
name=$(basename "$file" .py)
if ! [ "$name" = "__init__" ]; then
path="docs/${name}.md"
echo "---" > $path
echo "title: \"${name}\"" >> $path
echo "---" >> $path
echo >> $path
echo "::: src.fast_cd.${name}" >> $path
fi
done
#For all files in a module
shopt -s nullglob
for file in src/fast_cd/*/*.py; do
name=$(basename "$file" .py)
modulename=$(basename "$(dirname $file)")
if ! [ "$name" = "__init__" ]; then
mkdir -p "docs/${modulename}"
path="docs/${modulename}/${name}.md"
echo "---" > $path
echo "title: \"${modulename}.${name}\"" >> $path
echo "---" >> $path
echo >> $path
echo "::: src.fast_cd.${modulename}.${name}" >> $path
fi
done
5 changes: 5 additions & 0 deletions docs/deformation_jacobian.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "deformation_jacobian"
---

::: src.fast_cd.deformation_jacobian
5 changes: 5 additions & 0 deletions docs/diffuse_weights.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "diffuse_weights"
---

::: src.fast_cd.diffuse_weights
5 changes: 5 additions & 0 deletions docs/eigs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "eigs"
---

::: src.fast_cd.eigs
5 changes: 5 additions & 0 deletions docs/face_landmarks_to_positions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "face_landmarks_to_positions"
---

::: src.fast_cd.face_landmarks_to_positions
5 changes: 5 additions & 0 deletions docs/fast_cd_sim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "fast_cd_sim"
---

::: src.fast_cd.fast_cd_sim
6 changes: 6 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Fast Complementary Dynamics

This is the documentation page for the source code for [Fast Complementary Dynamics
via Skinning Eigenmodes](https://www.dgp.toronto.edu/projects/fast_complementary_dynamics_site/).

This site and codebase is still a work in progress.
5 changes: 5 additions & 0 deletions docs/laplacian.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "laplacian"
---

::: src.fast_cd.laplacian
5 changes: 5 additions & 0 deletions docs/laplacian_eigenmodes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "laplacian_eigenmodes"
---

::: src.fast_cd.laplacian_eigenmodes
5 changes: 5 additions & 0 deletions docs/lbs_jacobian.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "lbs_jacobian"
---

::: src.fast_cd.lbs_jacobian
5 changes: 5 additions & 0 deletions docs/lbs_weight_space_constraint.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "lbs_weight_space_constraint"
---

::: src.fast_cd.lbs_weight_space_constraint
5 changes: 5 additions & 0 deletions docs/linear_elasticity_hessian.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "linear_elasticity_hessian"
---

::: src.fast_cd.linear_elasticity_hessian
5 changes: 5 additions & 0 deletions docs/mediapipe_face.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "mediapipe_face"
---

::: src.fast_cd.mediapipe_face
5 changes: 5 additions & 0 deletions docs/mediapipe_face_captor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "mediapipe_face_captor"
---

::: src.fast_cd.mediapipe_face_captor
5 changes: 5 additions & 0 deletions docs/momentum_leaking_matrix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "momentum_leaking_matrix"
---

::: src.fast_cd.momentum_leaking_matrix
5 changes: 5 additions & 0 deletions docs/normalize_height_and_center.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "normalize_height_and_center"
---

::: src.fast_cd.normalize_height_and_center
5 changes: 5 additions & 0 deletions docs/one_euro_filter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "one_euro_filter"
---

::: src.fast_cd.one_euro_filter
5 changes: 5 additions & 0 deletions docs/orthonormalize.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "orthonormalize"
---

::: src.fast_cd.orthonormalize
5 changes: 5 additions & 0 deletions docs/project_into_subspace.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "project_into_subspace"
---

::: src.fast_cd.project_into_subspace
5 changes: 5 additions & 0 deletions docs/project_out_subspace.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "project_out_subspace"
---

::: src.fast_cd.project_out_subspace
5 changes: 5 additions & 0 deletions docs/project_to_orthogonal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "project_to_orthogonal"
---

::: src.fast_cd.project_to_orthogonal
5 changes: 5 additions & 0 deletions docs/read_rig_anim_from_json.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "read_rig_anim_from_json"
---

::: src.fast_cd.read_rig_anim_from_json
5 changes: 5 additions & 0 deletions docs/read_rig_from_json.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "read_rig_from_json"
---

::: src.fast_cd.read_rig_from_json
5 changes: 5 additions & 0 deletions docs/rig_curve_geometry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "rig_curve_geometry"
---

::: src.fast_cd.rig_curve_geometry
5 changes: 5 additions & 0 deletions docs/rig_geometry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "rig_geometry"
---

::: src.fast_cd.rig_geometry
5 changes: 5 additions & 0 deletions docs/rotate_rig.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "rotate_rig"
---

::: src.fast_cd.rotate_rig
5 changes: 5 additions & 0 deletions docs/skinning_clusters.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "skinning_clusters"
---

::: src.fast_cd.skinning_clusters
5 changes: 5 additions & 0 deletions docs/skinning_subspace.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "skinning_subspace"
---

::: src.fast_cd.skinning_subspace
5 changes: 5 additions & 0 deletions docs/umfpack_lu_solve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "umfpack_lu_solve"
---

::: src.fast_cd.umfpack_lu_solve
5 changes: 5 additions & 0 deletions docs/vectorized_trace.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "vectorized_trace"
---

::: src.fast_cd.vectorized_trace
5 changes: 5 additions & 0 deletions docs/vectorized_transpose.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "vectorized_transpose"
---

::: src.fast_cd.vectorized_transpose
5 changes: 5 additions & 0 deletions docs/viewers/ClustersViewer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "viewers.ClustersViewer"
---

::: src.fast_cd.viewers.ClustersViewer
5 changes: 5 additions & 0 deletions docs/viewers/WeightsViewer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "viewers.WeightsViewer"
---

::: src.fast_cd.viewers.WeightsViewer
5 changes: 5 additions & 0 deletions docs/viewers/interactive_handle_subspace_viewer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "viewers.interactive_handle_subspace_viewer"
---

::: src.fast_cd.viewers.interactive_handle_subspace_viewer
5 changes: 5 additions & 0 deletions docs/viewers/interactive_handle_viewer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "viewers.interactive_handle_viewer"
---

::: src.fast_cd.viewers.interactive_handle_viewer
5 changes: 5 additions & 0 deletions docs/world2rel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "world2rel"
---

::: src.fast_cd.world2rel
5 changes: 5 additions & 0 deletions docs/ympr_to_lame.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "ympr_to_lame"
---

::: src.fast_cd.ympr_to_lame
Loading

0 comments on commit 790703a

Please sign in to comment.