Skip to content

Mkdocs #271

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Mar 10, 2023
Merged

Mkdocs #271

merged 12 commits into from
Mar 10, 2023

Conversation

tazend
Copy link
Member

@tazend tazend commented Mar 8, 2023

Based on #268

@multimeric
Alright, you should be able to run scripts/builddocs.sh and mkdocs serve to check out the rendered docs from compiling with Cython 3

multimeric and others added 12 commits February 28, 2023 13:56
cpdef didn't work correctly with Cython 3.0 onwards, which is needed for
the docs. Setting this to "cdef enum" doesn't change any functionality
in our case.
For building docs, we use Cython 3.0 now, which automatically provides
full introspection functionality for cython functions
@multimeric
Copy link
Contributor

Looks good! I've added a PR that enables binding globally, but doing it just for pyslurm.pyx is probably fine too. Also, did you want to use the mkdocs theme? You just have to change the theme name in the config file.

@tazend
Copy link
Member Author

tazend commented Mar 9, 2023

Initially wanted to use the readthedocs theme, but I changed my mind - I think the material theme is a bit nicer and more customizable.

As for the binding: With Cython >= 3 we don't need to configure anything specific, as binding is enabled globally by default in Cython 3.

@tazend tazend mentioned this pull request Mar 9, 2023
20 tasks
@multimeric
Copy link
Contributor

Looks good to me. The docstrings should Just Work because you're enforcing Cython 3 in the doc requirements.

@tazend tazend merged commit f3dbb73 into PySlurm:main Mar 10, 2023
tazend added a commit that referenced this pull request May 14, 2023
* Transition from sphinx to mkdocs for documentation

* Tidy up docstrings, mkdocs config

* Add logo to docs, hide navbar

* Reformat docstring indentation

* Missing newline

* Fix more wrong indents

* Add `mike` for versioning the docs

* add site dir to gitignore

* setup.py: Remove .so files on cleanup

* header.pxi: Rename all "cpdef enum" to "cdef enum"

cpdef didn't work correctly with Cython 3.0 onwards, which is needed for
the docs. Setting this to "cdef enum" doesn't change any functionality
in our case.

* Remove embedsignature=True

For building docs, we use Cython 3.0 now, which automatically provides
full introspection functionality for cython functions

* Build docs with Cython 3.0

---------

Co-authored-by: Michael Milton <michael.r.milton@gmail.com>
Co-authored-by: Michael Milton <ttmigueltt@gmail.com>
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.

2 participants