Skip to content

Conversation

@hunghaoti
Copy link
Collaborator

This PR resolves issue #587 and migrates the documentation build action into this repository. However, we will still keep the separate Cytnx_doc repository because its GitHub Pages are used to host the online documentation:
https://cytnx-dev.github.io/Cytnx_doc/.

The workflow now deploys all generated documentation files from this repo to the gh-pages branch of Cytnx_doc, ensuring that the online documentation is kept up to date:

external_repository: Cytnx-dev/Cytnx_doc

We may also consider hosting the documentation directly from this repository in the future (I currently do not have access to enable GitHub Pages here).

This PR also updates the API documentation. The “latest version” refers to documentation generated from the master branch. And the online documentation will be updated when a commit push to the master branch.

Additionally, all broken links have been fixed, and the main README page has been updated.

@codecov
Copy link

codecov bot commented Nov 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 32.10%. Comparing base (41e57ac) to head (4d4e453).
⚠️ Report is 29 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #717      +/-   ##
==========================================
- Coverage   32.74%   32.10%   -0.65%     
==========================================
  Files         215      215              
  Lines       35065    36218    +1153     
  Branches    14071    14540     +469     
==========================================
+ Hits        11482    11627     +145     
- Misses      21708    22668     +960     
- Partials     1875     1923      +48     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Collaborator

@IvanaGyro IvanaGyro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The commit history includes some commit for testing. Can you squash those commits which do not take effect to the final change into the related commits?

* Boost v1.53+ [check_deleted, atomicadd, intrusive_ptr]
* openblas (or mkl, see below)
* gcc v6+ (or icpc, see below) (recommand latest or equivalent clang on Mac/Linux with C++11 support) (required -std=c++11)
* gcc v13+ (or icpc, see below) (recommand latest or equivalent clang on Mac/Linux with C++20 support) (required -std=c++20)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dependency list is not completed here. Refer to the conda build receipt for the full list.

* pybind11 >= 3.0.0
* python-graphviz
* graphviz
* numpy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Runtime dependencies and build time dependencies are mixed here.

$conda config --add channels conda-forge
$conda create --name cytnx python=3.8 llvm-openmp
$conda create --name cytnx python=3.9 llvm-openmp
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think llvm-openmp is not needed.

.. code-block:: shell
$conda install cmake make boost libboost git compilers numpy openblas arpack pybind11 beartype
$conda install cmake make boost libboost git compilers numpy openblas arpack pybind11 beartype arpack
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arpack is repeated. libboost is not needed.

| options | default | description |
+------------------------+-------------------+------------------------------------+
| -DCMAME_INSTALL_PREFIX | /usr/local/cytnx | Install destination of the library |
| -DCMAKE_INSTALL_PREFIX | /usr/local/cytnx | Install destination of the library |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some option below are removed. For example USE_ICPC and USE_OMP.

Generate API documentation
*************************************
An API documentation can be generated from the source code of Cytnx by using doxygen. The documentation is accessible online at <https://kaihsinwu.gitlab.io/cytnx_api/>. To create it locally, make sure that doxygen is installed:
An API documentation can be generated from the source code of Cytnx by using doxygen. The documentation is accessible online at `here <../api_build/html/index.html>`__. To create it locally, make sure that doxygen is installed:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about online <../api_build/html/index.html>.?


1. We do not support a native Windows package at this stage. If you are using Windows OS, please use WSL.
2. [0.9] Currently, the supported Python versions are updated to: linux -- 3.8/3.9/3.10; MacOS-osx64 -- 3.7+ (no conda support). You can change the python=* argument to the version you like.
2. Currently, the supported Python versions are updated to: linux -- 3.9+; MacOS-osx64 -- 3.9+ (no conda support). You can change the python=* argument to the version you like.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have already supported macOS on conda.

@manuschneider manuschneider added this to the v1.1.0 milestone Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants