Skip to content

Commit

Permalink
Fix model-viewer auto-sizing. Shrink upload size.
Browse files Browse the repository at this point in the history
  • Loading branch information
kwokcb committed Aug 16, 2024
1 parent 06d8714 commit 0e36324
Show file tree
Hide file tree
Showing 83 changed files with 3,205 additions and 8,395 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,19 @@ jobs:
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Create distribution
run: |
mkdir distribution
cp index.html distribution
cp -R documents distribution
cp -R examples distribution
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: '.'
name: distribution
path: distribution
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
artifact_name: distribution
46 changes: 20 additions & 26 deletions documents/html/____init_____8py_source.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MaterialXMaterials: __init__.py Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
Expand All @@ -24,9 +24,10 @@
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">MaterialXMaterials<span id="projectnumber">&#160;0.0.1</span>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">MaterialXMaterials
&#160;<span id="projectnumber">0.0.1</span>
</div>
<div id="projectbrief">Utilities for retrieving materials from remote servers</div>
</td>
Expand All @@ -35,22 +36,21 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
Expand All @@ -64,7 +64,7 @@
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('____init_____8py_source.html',''); initResizable(); });
/* @license-end */
</script>
Expand All @@ -78,30 +78,24 @@

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
<div class="headertitle"><div class="title">__init__.py</div></div>
<div class="headertitle">
<div class="title">__init__.py</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span>__version__ = <span class="stringliteral">&#39;0.0.1&#39;</span></div>
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;__version__ = <span class="stringliteral">&#39;0.0.1&#39;</span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_ed2309c38062a0ffa21222134f4047e1.html">materialxMaterials</a></li><li class="navelem"><b>__init__.py</b></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5 </li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
</ul>
</div>
</body>
Expand Down
112 changes: 53 additions & 59 deletions documents/html/____main_____8py_source.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MaterialXMaterials: __main__.py Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
Expand All @@ -24,9 +24,10 @@
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">MaterialXMaterials<span id="projectnumber">&#160;0.0.1</span>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">MaterialXMaterials
&#160;<span id="projectnumber">0.0.1</span>
</div>
<div id="projectbrief">Utilities for retrieving materials from remote servers</div>
</td>
Expand All @@ -35,22 +36,21 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
Expand All @@ -64,7 +64,7 @@
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('____main_____8py_source.html',''); initResizable(); });
/* @license-end */
</script>
Expand All @@ -78,63 +78,57 @@

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
<div class="headertitle"><div class="title">__main__.py</div></div>
<div class="headertitle">
<div class="title">__main__.py</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="keyword">import</span> sys, os</div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="keyword">import</span> subprocess</div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="keyword">def </span>main() -&gt; int:</div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span> <span class="stringliteral">&#39;&#39;&#39;</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="stringliteral"> Main entry point </span><span class="keywordflow">for</span> running commands <span class="keywordflow">in</span> the package.</div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span> <span class="stringliteral">&#39;&#39;&#39;</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="stringliteral"> argCount = len(sys.argv)</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="stringliteral"> </span><span class="keywordflow">if</span> argCount &lt; 2:</div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> print(<span class="stringliteral">&#39;No arguments provided. Use -h or --help for help.&#39;</span>)</div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> <span class="keywordflow">return</span> 1</div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> <span class="keywordflow">if</span> sys.argv[1] == <span class="stringliteral">&#39;-h&#39;</span> <span class="keywordflow">or</span> sys.argv[1] == <span class="stringliteral">&#39;--help&#39;</span>:</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> print(<span class="stringliteral">&#39;Usage: python -m materialxMaterials &lt;command&gt; [options] where command is gpuopen or physbased&#39;</span>)</div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> </div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> <span class="comment"># Check if the command is valid</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> cmdArgs = sys.argv[1:]</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> <span class="keywordflow">if</span> cmdArgs[0] == <span class="stringliteral">&#39;physbased&#39;</span>:</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> cmdArgs[0] = <span class="stringliteral">&#39;physicallyBasedMaterialXCmd.py&#39;</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> <span class="keywordflow">elif</span> cmdArgs[0] == <span class="stringliteral">&#39;gpuopen&#39;</span>:</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> cmdArgs[0] = <span class="stringliteral">&#39;GPUOpenLoaderCmd.py&#39;</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> <span class="keywordflow">else</span>:</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> print(<span class="stringliteral">&#39;Unknown command specified:&#39;</span>, cmdArgs[0])</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> <span class="keywordflow">return</span> 1</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> <span class="comment"># Build the command</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> cmd = <span class="stringliteral">&#39; &#39;</span>.join(cmdArgs)</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> packageLocation = os.path.dirname(__file__)</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> cmd = <span class="stringliteral">&#39;python &#39;</span> + packageLocation + <span class="stringliteral">&#39;/&#39;</span> + cmd</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="comment"># Run the command</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <span class="keywordflow">return</span> subprocess.call(cmd, shell=<span class="keyword">True</span>)</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="keywordflow">if</span> __name__ == <span class="stringliteral">&#39;__main__&#39;</span>:</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> sys.exit(main())</div>
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="keyword">import</span> sys, os</div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="keyword">import</span> subprocess</div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160; </div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="keyword">def </span>main() -&gt; int:</div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160; <span class="stringliteral">&#39;&#39;&#39;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="stringliteral"> Main entry point for running commands in the package.</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="stringliteral"> &#39;&#39;&#39;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160; argCount = len(sys.argv)</div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160; <span class="keywordflow">if</span> argCount &lt; 2:</div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160; print(<span class="stringliteral">&#39;No arguments provided. Use -h or --help for help.&#39;</span>)</div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160; <span class="keywordflow">return</span> 1</div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160; <span class="keywordflow">if</span> sys.argv[1] == <span class="stringliteral">&#39;-h&#39;</span> <span class="keywordflow">or</span> sys.argv[1] == <span class="stringliteral">&#39;--help&#39;</span>:</div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160; print(<span class="stringliteral">&#39;Usage: python -m materialxMaterials &lt;command&gt; [options] where command is gpuopen or physbased&#39;</span>)</div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160; </div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160; <span class="comment"># Check if the command is valid</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160; cmdArgs = sys.argv[1:]</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160; <span class="keywordflow">if</span> cmdArgs[0] == <span class="stringliteral">&#39;physbased&#39;</span>:</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160; cmdArgs[0] = <span class="stringliteral">&#39;physicallyBasedMaterialXCmd.py&#39;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; <span class="keywordflow">elif</span> cmdArgs[0] == <span class="stringliteral">&#39;gpuopen&#39;</span>:</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; cmdArgs[0] = <span class="stringliteral">&#39;GPUOpenLoaderCmd.py&#39;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; <span class="keywordflow">else</span>:</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; print(<span class="stringliteral">&#39;Unknown command specified:&#39;</span>, cmdArgs[0])</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; <span class="keywordflow">return</span> 1</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; </div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; <span class="comment"># Build the command</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; cmd = <span class="stringliteral">&#39; &#39;</span>.join(cmdArgs)</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; packageLocation = os.path.dirname(__file__)</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; cmd = <span class="stringliteral">&#39;python &#39;</span> + packageLocation + <span class="stringliteral">&#39;/&#39;</span> + cmd</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; </div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; <span class="comment"># Run the command</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; <span class="keywordflow">return</span> subprocess.call(cmd, shell=<span class="keyword">True</span>)</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="keywordflow">if</span> __name__ == <span class="stringliteral">&#39;__main__&#39;</span>:</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; sys.exit(main())</div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_ed2309c38062a0ffa21222134f4047e1.html">materialxMaterials</a></li><li class="navelem"><b>__main__.py</b></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5 </li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
</ul>
</div>
</body>
Expand Down
Loading

0 comments on commit 0e36324

Please sign in to comment.