Skip to content

Commit

Permalink
fix path to requirements file in .readthedocs.yml (#331)
Browse files Browse the repository at this point in the history
* fix path to requirements file in .readthedocs.yml

Signed-off-by: Clement Fuji Tsang <cfujitang@nvidia.com>

* add macros for cpu only on marching cubes

Signed-off-by: Clement Fuji Tsang <cfujitang@nvidia.com>

* use proper extension for marching cube if cpu-only

Signed-off-by: Clement Fuji Tsang <cfujitang@nvidia.com>

* import torch/extension.h event on cpu-only

Signed-off-by: Clement Fuji Tsang <cfujitang@nvidia.com>

* add manually doc files

Signed-off-by: Clement Fuji Tsang <cfujitang@nvidia.com>

* try with 3.7

Signed-off-by: Clement Fuji Tsang <cfujitang@nvidia.com>

* update setuptools in doc_requirements.txt

Signed-off-by: Clement Fuji Tsang <cfujitang@nvidia.com>

* add usd-core to tools/doc_requirements.txt

Signed-off-by: Clement Fuji Tsang <cfujitang@nvidia.com>

* ignore contents.rst

Signed-off-by: Clement Fuji Tsang <cfujitang@nvidia.com>

* add layout.html

Signed-off-by: Clement Fuji Tsang <cfujitang@nvidia.com>

Co-authored-by: Clement Fuji Tsang <cfujitang@nvidia.com>
  • Loading branch information
Caenorst and Clement Fuji Tsang committed Dec 9, 2020
1 parent 8e99be5 commit 59d9c1a
Show file tree
Hide file tree
Showing 13 changed files with 116 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version: 2

python:
version: 3.6
version: 3.7
system_packages: true
install:
- requirements: docs/requirements.txt
- requirements: tools/doc_requirements.txt
- method: setuptools
path: '.'
path: '.'
30 changes: 30 additions & 0 deletions docs/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

{% extends "!layout.html" %}
{% block footer %} {{ super() }}
<style>
:root {
--nvidia-color: #76B900;
}

a, a:visited, a:active {
color: var(--nvidia-color);
}
/* Sidebar header (and topbar for mobile) */
.wy-side-nav-search, .wy-nav-top {
background-color: var(--nvidia-color);
}
/* Sidebar */
.wy-menu-vertical header, .wy-menu-vertical p.caption {
color: #DFDFDF;
}

.rst-content .note, .rst-content .seealso, .rst-content .wy-alert-info.admonition, .rst-content .wy-alert-info.admonition-todo, .rst-content .wy-alert-info.attention, .rst-content .wy-alert-info.caution, .rst-content .wy-alert-info.danger, .rst-content .wy-alert-info.error, .rst-content .wy-alert-info.hint, .rst-content .wy-alert-info.important, .rst-content .wy-alert-info.tip, .rst-content .wy-alert-info.warning, .wy-alert.wy-alert-info {
background: #eaefe0;
}

.rst-content .note .admonition-title, .rst-content .note .wy-alert-title, .rst-content .seealso .admonition-title, .rst-content .seealso .wy-alert-title, .rst-content .wy-alert-info.admonition-todo .admonition-title, .rst-content .wy-alert-info.admonition-todo .wy-alert-title, .rst-content .wy-alert-info.admonition .admonition-title, .rst-content .wy-alert-info.admonition .wy-alert-title, .rst-content .wy-alert-info.attention .admonition-title, .rst-content .wy-alert-info.attention .wy-alert-title, .rst-content .wy-alert-info.caution .admonition-title, .rst-content .wy-alert-info.caution .wy-alert-title, .rst-content .wy-alert-info.danger .admonition-title, .rst-content .wy-alert-info.danger .wy-alert-title, .rst-content .wy-alert-info.error .admonition-title, .rst-content .wy-alert-info.error .wy-alert-title, .rst-content .wy-alert-info.hint .admonition-title, .rst-content .wy-alert-info.hint .wy-alert-title, .rst-content .wy-alert-info.important .admonition-title, .rst-content .wy-alert-info.important .wy-alert-title, .rst-content .wy-alert-info.tip .admonition-title, .rst-content .wy-alert-info.tip .wy-alert-title, .rst-content .wy-alert-info.warning .admonition-title, .rst-content .wy-alert-info.warning .wy-alert-title, .rst-content .wy-alert.wy-alert-info .admonition-title, .wy-alert.wy-alert-info .rst-content .admonition-title, .wy-alert.wy-alert-info .wy-alert-title {
background: #efeff0;
}
}
</style>
{% endblock %}
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
'PyTorch': ('http://pytorch.org/docs/master/', None),
}

master_doc = 'index'

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

Expand Down
10 changes: 10 additions & 0 deletions docs/modules/kaolin.metrics.pointcloud.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kaolin.metrics.pointcloud
=========================

API
---

.. automodule:: kaolin.metrics.pointcloud
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/modules/kaolin.metrics.trianglemesh.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kaolin.metrics.trianglemesh
===========================

API
---

.. automodule:: kaolin.metrics.trianglemesh
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/modules/kaolin.metrics.voxelgrid.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kaolin.metrics.voxelgrid
========================

API
---

.. automodule:: kaolin.metrics.voxelgrid
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/modules/kaolin.render.camera.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kaolin.render.camera
====================

API
---

.. automodule:: kaolin.render.camera
:members:
:undoc-members:
:show-inheritance:
12 changes: 12 additions & 0 deletions docs/modules/kaolin.render.mesh.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
kaolin.render.mesh
==================



API
---

.. automodule:: kaolin.render.mesh
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/modules/kaolin.utils.testing.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kaolin.utils.testing
====================

API
---

.. automodule:: kaolin.utils.testing
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/modules/kaolin.visualize.timelapse.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kaolin.visualize.timelapse
==========================

API
---

.. automodule:: kaolin.visualize.timelapse
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <iostream>
#include <torch/extension.h>

#ifdef WITH_CUDA
#include <iostream>

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Expand Down Expand Up @@ -233,8 +235,10 @@ std::vector<at::Tensor> unbatched_mcube_forward(const at::Tensor voxelgrid, floa

return result;
}

#endif

PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
#ifdef WITH_CUDA
m.def("forward_cuda", &unbatched_mcube_forward, "Unbatched Marching Cube forward");
#endif
}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def get_extensions():
)

extensions.append(
CUDAExtension(
extension(
name='kaolin.ops.conversions.unbatched_mcube_cuda',
sources=filters_cu(['kaolin/csrc/cuda/ops/conversions/unbatched_mcube/unbatched_mcube_cuda.cpp',
'kaolin/csrc/cuda/ops/conversions/unbatched_mcube/unbatched_mcube_cuda_kernel.cu'],
Expand Down
2 changes: 2 additions & 0 deletions tools/doc_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
setuptools>=50.3
usd-core==20.11
sphinx
sphinx_rtd_theme

0 comments on commit 59d9c1a

Please sign in to comment.