Skip to content

Commit

Permalink
[DOC] fix tutorial, update doc github action
Browse files Browse the repository at this point in the history
  • Loading branch information
skoudoro committed Feb 29, 2024
1 parent 9cbb088 commit ea0fb16
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ jobs:
ssh-key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
repository-name: fury-gl/fury-website
folder: ./docs/build/html-web-only
target-folder: v0.9.x
target-folder: v0.10.x
clean: false
2 changes: 1 addition & 1 deletion docs/examples/_valid_examples.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ readme = "file: _animation.rst"
position = 10
enable = true
files = [
"viz_interpolators.py",
# "viz_interpolators.py",
"viz_bezier_interpolator.py",
"viz_introduction.py",
"viz_camera.py",
Expand Down
7 changes: 5 additions & 2 deletions docs/examples/viz_card_sprite_sheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
First, some imports.
"""
import os
from tempfile import TemporaryDirectory as InTemporaryDirectory

from fury import ui, window
from fury.data import fetch_viz_icons
from fury.io import load_image, load_sprite_sheet, save_image
from tempfile import TemporaryDirectory as InTemporaryDirectory

##############################################################################
# First we need to fetch some icons that are included in FURY.
Expand All @@ -23,7 +24,9 @@

fetch_viz_icons()

sprite_sheet = load_sprite_sheet('https://i.imgur.com/0yKFTBQ.png', 5, 5)
sprite_sheet = load_sprite_sheet('https://raw.githubusercontent.com/fury-gl/'
'fury-data/master/unittests/fury_sprite.png',
5, 5)
CURRENT_SPRITE_IDX = 0

vtk_sprites = []
Expand Down
10 changes: 5 additions & 5 deletions docs/examples/viz_chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@
basePosition,
baseOrientation,
linkMasses=link_Masses,
linkCollisionShapeIndices=linkCollisionShapeIndices,
linkVisualShapeIndices=linkVisualShapeIndices,
linkCollisionShapeIndices=linkCollisionShapeIndices.astype(int),
linkVisualShapeIndices=linkVisualShapeIndices.astype(int),
linkPositions=linkPositions,
linkOrientations=linkOrientations,
linkInertialFramePositions=linkInertialFramePositions,
linkInertialFrameOrientations=linkInertialFrameOrns,
linkParentIndices=indices,
linkJointTypes=jointTypes,
linkJointAxis=axis,
linkParentIndices=indices.astype(int),
linkJointTypes=jointTypes.astype(int),
linkJointAxis=axis.astype(int),
)

###############################################################################
Expand Down
18 changes: 9 additions & 9 deletions docs/examples/viz_wrecking_ball.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,15 @@
basePosition,
baseOrientation,
linkMasses=link_Masses,
linkCollisionShapeIndices=linkCollisionShapeIndices,
linkVisualShapeIndices=linkVisualShapeIndices,
linkPositions=linkPositions,
linkOrientations=linkOrientations,
linkInertialFramePositions=linkInertialFramePositions,
linkInertialFrameOrientations=linkInertialFrameOrns,
linkParentIndices=indices,
linkJointTypes=jointTypes,
linkJointAxis=axis,
linkCollisionShapeIndices=linkCollisionShapeIndices.astype(int),
linkVisualShapeIndices=linkVisualShapeIndices.astype(int),
linkPositions=linkPositions.astype(int),
linkOrientations=linkOrientations.astype(int),
linkInertialFramePositions=linkInertialFramePositions.astype(int),
linkInertialFrameOrientations=linkInertialFrameOrns.astype(int),
linkParentIndices=indices.astype(int),
linkJointTypes=jointTypes.astype(int),
linkJointAxis=axis.astype(int),
)

###############################################################################
Expand Down
7 changes: 6 additions & 1 deletion docs/source/_static/versions_switcher.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@
"url": "https://fury.gl/dev/index.html"
},
{
"name": "v0.9.x (stable)",
"name": "v0.10.x (stable)",
"version": "stable",
"url": "https://fury.gl/v0.10.x/index.html"
},
{
"name": "v0.9.x",
"version": "v0.9.x",
"url": "https://fury.gl/v0.9.x/index.html"
},
{
Expand Down

0 comments on commit ea0fb16

Please sign in to comment.