Skip to content

Commit

Permalink
auto update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ghzh26252 committed Jan 29, 2024
1 parent 0d58cf3 commit 296db1f
Show file tree
Hide file tree
Showing 115 changed files with 26,065 additions and 13,175 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll with GitHub Pages dependencies preinstalled
name: Deploy GitHub Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
paths:
- 'docs/**'

pull_request:
branches: ["main"]
paths:
- 'docs/**'
tags:
- 'v*'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -34,12 +28,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install sphinx sphinx-rtd-theme myst-parser
curl -o Doc/markdown/get_started.md https://raw.githubusercontent.com/mvig-robotflow/rfuniverse/main/README.md
curl -o Doc/markdown/advanced_usages.md https://raw.githubusercontent.com/mvig-robotflow/rfuniverse/main/DevDoc.md
Doc/make.bat html
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
name: github-pages
path: docs/
path: Doc/_build/html/
retention-days: 1
- name: Create tar.gz archive
run: |
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ pyrfuniverse.egg-info/
Temp/

dist/

Doc/
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

20 changes: 20 additions & 0 deletions Doc/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
39 changes: 39 additions & 0 deletions Doc/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import os
import sys
sys.path.insert(0, os.path.abspath('../'))

# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = 'pyrfuniverse'
copyright = '2023, RobotFlow'
author = 'RobotFlow'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.napoleon',
'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
'sphinx.ext.coverage',
'sphinx.ext.mathjax',
'myst_parser'
]
autodoc_member_order = 'bysource'

exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']

gettext_compact = True

# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = 'sphinx_rtd_theme'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
35 changes: 35 additions & 0 deletions Doc/make.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@ECHO OFF

pushd %~dp0

REM Command file for Sphinx documentation

if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=.
set BUILDDIR=_build

%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.https://www.sphinx-doc.org/
exit /b 1
)

if "%1" == "" goto help

%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
goto end

:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%

:end
popd
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ pyrfuniverse.attributes package
===============================

pyrfuniverse.attributes.base\_attr module
-----------------------------------------
----------------------------------------------------------------------------

.. automodule:: pyrfuniverse.attributes.base_attr
:members:
:show-inheritance:

pyrfuniverse.attributes.camera\_attr module
-------------------------------------------
----------------------------------------------------------------------------

.. automodule:: pyrfuniverse.attributes.camera_attr
:members:
Expand All @@ -25,21 +25,21 @@ pyrfuniverse.attributes.cloth\_attr module
:show-inheritance:

pyrfuniverse.attributes.collider\_attr module
-------------------------------------------------------------------------------
----------------------------------------------------------------------------

.. automodule:: pyrfuniverse.attributes.collider_attr
:members:
:show-inheritance:

pyrfuniverse.attributes.controller\_attr module
---------------------------------------------------------------------------------
----------------------------------------------------------------------------

.. automodule:: pyrfuniverse.attributes.controller_attr
:members:
:show-inheritance:

pyrfuniverse.attributes.gameobject\_attr module
---------------------------------------------------------------------------------
----------------------------------------------------------------------------

.. automodule:: pyrfuniverse.attributes.gameobject_attr
:members:
Expand All @@ -53,14 +53,14 @@ pyrfuniverse.attributes.light\_attr module
:show-inheritance:

pyrfuniverse.attributes.pointcloud\_attr module
---------------------------------------------------------------------------------
----------------------------------------------------------------------------

.. automodule:: pyrfuniverse.attributes.pointcloud_attr
:members:
:show-inheritance:

pyrfuniverse.attributes.rigidbody\_attr module
--------------------------------------------------------------------------------
----------------------------------------------------------------------------

.. automodule:: pyrfuniverse.attributes.rigidbody_attr
:members:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ pyrfuniverse.envs package
=========================

pyrfuniverse.envs.base\_env module
--------------------------------------------------------------------
----------------------------------------------------------------------------

.. automodule:: pyrfuniverse.envs.base_env
:members:
:show-inheritance:

pyrfuniverse.envs.gym\_wrapper\_env module
--------------------------------------------------------------------
----------------------------------------------------------------------------

.. automodule:: pyrfuniverse.envs.gym_wrapper_env
:members:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ pyrfuniverse.utils.depth\_processor module
:show-inheritance:

pyrfuniverse.utils.rfuniverse\_utility module
-------------------------------------------------------------------------------
----------------------------------------------------------------------------

.. automodule:: pyrfuniverse.utils.rfuniverse_utility
:members:
:show-inheritance:

pyrfuniverse.utils.coordinate\_system\_converter module
-------------------------------------------------------------------------------
----------------------------------------------------------------------------

.. automodule:: pyrfuniverse.utils.coordinate_system_converter
:members:
Expand Down
File renamed without changes
Binary file added Doc/tutorials/cloth/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Doc/tutorials/cloth/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Doc/tutorials/cloth/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Doc/tutorials/cloth/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added Doc/tutorials/cutting/1.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Doc/tutorials/cutting/2.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Doc/tutorials/cutting/3.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Doc/tutorials/cutting/4.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Doc/tutorials/cutting/5.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 296db1f

Please sign in to comment.