Skip to content

Commit

Permalink
updated docs: part 1
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvanmele committed Dec 5, 2023
1 parent 25bf4f7 commit d357af1
Show file tree
Hide file tree
Showing 89 changed files with 2,390 additions and 2,640 deletions.
10 changes: 4 additions & 6 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# EditorConfig is awesome: http://EditorConfig.org

root = true

[*]
Expand All @@ -9,21 +8,20 @@ insert_final_newline = true
indent_style = space
indent_size = 4
charset = utf-8
max_line_length = 120
max_line_length = 180

[*.{bat,cmd,ps1}]
end_of_line = crlf

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_size = 2

[Makefile]
indent_style = tab
indent_size = 4

[*.yml]
indent_style = space
indent_size = 2

[LICENSE]
insert_final_newline = false
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed

* Support for python below 3.8
* Support for python below 3.8
60 changes: 1 addition & 59 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,61 +1,3 @@
# Contributing

Contributions are welcome and very much appreciated!


## Code contributions

We accept code contributions through pull requests.
In short, this is how that works.

1. Fork [the repository](https://github.com/compas-dev/compas_fea2) and clone the fork.
2. Create a virtual environment using your tool of choice (e.g. `virtualenv`, `conda`, etc).
3. Install development dependencies:

```bash
$ pip install -r requirements-dev.txt
```

4. Make sure all tests pass:

```bash
$ invoke test
```

5. Start making your changes to the **master** branch (or branch off of it).
6. Make sure all tests still pass:

```bash
$ invoke test
```

7. Add yourself to the *Contributors* section of `AUTHORS.md`.
8. Commit your changes and push your branch to GitHub.
9. Create a [pull request](https://help.github.com/articles/about-pull-requests/) through the GitHub website.


During development, use [pyinvoke](http://docs.pyinvoke.org/) tasks on the
command line to ease recurring operations:

* `invoke clean`: Clean all generated artifacts.
* `invoke check`: Run various code and documentation style checks.
* `invoke docs`: Generate documentation.
* `invoke test`: Run all tests and checks in one swift command.
* `invoke`: Show available tasks.


## Bug reports

When [reporting a bug](https://github.com/compas-dev/compas_fea2/issues) please include:

* Operating system name and version.
* Any details about your local setup that might be helpful in troubleshooting.
* Detailed steps to reproduce the bug.


## Feature requests

When [proposing a new feature](https://github.com/compas-dev/compas_fea2/issues) please include:

* Explain in detail how it would work.
* Keep the scope as narrow as possible, to make it easier to implement.
Coming soon...
Binary file added docs/_images/CollaborationWorkflow.jpg
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 docs/_images/CollaborationWorkflow_example.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file removed docs/_images/examples/principal_stress_script.png
Binary file not shown.
Binary file added docs/_images/fork.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 docs/_images/workflow_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 docs/_images/workflow_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions docs/_static/compas.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
html[data-theme="light"] {
--pst-color-primary: #0092d2;
--pst-color-info: #0092d2;
--pst-color-text-muted: #888;
}

body {
line-height: 1.75;
font-weight: 300;
}

.bd-article-container h1 {
color: #0092d2;
}

.navbar-brand .logo__image {
height: 36px !important;
}

.bd-header {
box-shadow: none;
border-bottom: 1px solid var(--pst-color-shadow);
}

#rtd-footer-container {
height: 0px;
bottom: 0 !important;
margin: 0 !important;
display: none;
}
Binary file added docs/_static/compas.ico
Binary file not shown.
Binary file added docs/_static/compas_icon.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 docs/_static/compas_icon_white.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 docs/_static/compas_white.ico
Binary file not shown.
7 changes: 7 additions & 0 deletions docs/_static/versions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"name": "latest",
"version": "unreleased",
"url": "https://compas.dev/compas_libigl/latest/"
}
]
1 change: 0 additions & 1 deletion docs/_templates/PLACEHOLDER

This file was deleted.

8 changes: 0 additions & 8 deletions docs/_templates/autosummary/base.rst

This file was deleted.

60 changes: 0 additions & 60 deletions docs/_templates/autosummary/class.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/_templates/autosummary/method.rst

This file was deleted.

39 changes: 0 additions & 39 deletions docs/_templates/autosummary/module.rst

This file was deleted.

5 changes: 5 additions & 0 deletions docs/_templates/compas-sidebar-footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class="sidebar-primary-item">
<a href="https://compas.dev" target="_blank">
COMPAS.dev <i class="fa fa-external-link" aria-hidden="true"></i>
</a>
</div>
11 changes: 11 additions & 0 deletions docs/_templates/navbar-nav.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<nav class="navbar-nav">
<!-- <p class="sidebar-header-items__title"
role="heading"
aria-level="1"
aria-label="{{ _('Site Navigation') }}">
{{ _("Site Navigation") }}
</p>
<ul class="bd-navbar-elements navbar-nav">
{{ generate_header_nav_html(n_links_before_dropdown=theme_header_links_before_dropdown) }}
</ul> -->
</nav>
24 changes: 24 additions & 0 deletions docs/_templates/sbt-sidebar-nav.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<nav class="bd-links" id="bd-docs-nav" aria-label="Main">
<div class="bd-toc-item navbar-nav active">
{% if theme_home_page_in_toc == True %}
{#- This mimicks the pydata theme list style so we can append an extra item at the top #}
<ul class="nav bd-sidenav bd-sidenav__home-link">
<li class="toctree-l1{% if pagename == root_doc %} current active{% endif %}">
<a class="reference internal" href="{{ pathto(root_doc) }}">
{{ root_title }}
</a>
</li>
</ul>
{% endif -%}

{# Ref: https://github.com/pydata/pydata-sphinx-theme/blob/ebf7f704879a1cdc6016d6111062103353ac7677/src/pydata_sphinx_theme/__init__.py#L302 #}
{{- generate_toctree_html(
startdepth=0,
kind="sidebar",
maxdepth=theme_navigation_depth,
collapse=False,
includehidden=True,
titles_only=True,
show_nav_level=1) }}
</div>
</nav>
3 changes: 3 additions & 0 deletions docs/advanced.backends.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
******************
Advanced: Backends
******************
3 changes: 3 additions & 0 deletions docs/advanced.results.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*****************
Advanced: Results
*****************
3 changes: 3 additions & 0 deletions docs/advanced.visualisation.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
***********************
Advanced: Visualisation
***********************
2 changes: 0 additions & 2 deletions docs/api/compas_fea2.UI.rst

This file was deleted.

11 changes: 10 additions & 1 deletion docs/api/compas_fea2.job.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
********************************************************************************
job
********************************************************************************

.. automodule:: compas_fea2.job
.. currentmodule:: compas_fea2.job

.. autosummary::
:toctree: generated/

InputFile
ParametersFile
Loading

0 comments on commit d357af1

Please sign in to comment.