Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Add docs build job #536

Merged
merged 26 commits into from
Feb 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
127e899
initial draft
AyodeAwe Jan 19, 2023
c2755a4
initial draft
AyodeAwe Jan 19, 2023
cce7282
Merge branch 'add_docs_build' of github.com:AyodeAwe/cusignal into ad…
AyodeAwe Jan 19, 2023
dda35e6
pip
AyodeAwe Jan 19, 2023
cd85571
downgr sphinx
AyodeAwe Jan 19, 2023
6b9d9af
fix typo
AyodeAwe Jan 24, 2023
582fa89
review
AyodeAwe Jan 27, 2023
c16d811
fix typo
AyodeAwe Jan 28, 2023
d6c270b
set lang to en
AyodeAwe Jan 28, 2023
f6da163
autodoc warning fixes
AyodeAwe Jan 31, 2023
6dcde7e
Revert "autodoc warning fixes"
AyodeAwe Feb 1, 2023
6bfe0ce
Revert "set lang to en"
AyodeAwe Feb 1, 2023
65c316c
rm -W flag
AyodeAwe Feb 1, 2023
1b2e8ab
Merge branch 'branch-23.02' into add_docs_build
AyodeAwe Feb 1, 2023
a8d6104
minor fixes
AyodeAwe Feb 1, 2023
d47f593
Merge branch 'branch-23.02' into add_docs_build
AyodeAwe Feb 1, 2023
140fe52
docs_build -> docs
AyodeAwe Feb 10, 2023
ac9037a
Merge branch 'add_docs_build' of github.com:AyodeAwe/cusignal into ad…
AyodeAwe Feb 10, 2023
58d520c
Merge branch 'branch-23.04' into add_docs_build
AyodeAwe Feb 10, 2023
1913099
update shared workflows branch
ajschmidt8 Feb 13, 2023
b6512fb
Merge branch 'branch-23.04' into add_docs_build
ajschmidt8 Feb 13, 2023
ecc447e
fix critical & underline warnings
AyodeAwe Feb 14, 2023
05e2800
rm trailing whitespace
ajschmidt8 Feb 14, 2023
1da025d
add docs directories to `.gitignore`
ajschmidt8 Feb 14, 2023
d54afc2
rm unnecessary imports & header
ajschmidt8 Feb 14, 2023
7ea1672
put back copyright header
ajschmidt8 Feb 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,14 @@ jobs:
branch: ${{ inputs.branch }}
date: ${{ inputs.date }}
sha: ${{ inputs.sha }}
docs-build:
if: ${{ startsWith(github.ref, 'refs/heads/branch-') }}
needs: python-build
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/custom-job.yaml@branch-23.04
with:
build_type: branch
node_type: "gpu-latest-1"
arch: "amd64"
container_image: "rapidsai/ci:latest"
run_script: "ci/build_docs.sh"
11 changes: 11 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- conda-python-build
- conda-python-tests
- conda-notebook-tests
- docs-build
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/pr-builder.yaml@branch-23.04
checks:
Expand Down Expand Up @@ -43,3 +44,13 @@ jobs:
arch: "amd64"
container_image: "rapidsai/ci:latest"
run_script: "ci/test_notebooks.sh"
docs-build:
needs: conda-python-build
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/custom-job.yaml@branch-23.04
with:
build_type: pull-request
node_type: "gpu-latest-1"
arch: "amd64"
container_image: "rapidsai/ci:latest"
run_script: "ci/build_docs.sh"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ lib64
*.fatbin
docs/build
*.ipynb_checkpoints
docs/_html
docs/_text
37 changes: 37 additions & 0 deletions ci/build_docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/bash
# Copyright (c) 2023, NVIDIA CORPORATION.

set -euo pipefail

rapids-logger "Create test conda environment"
. /opt/conda/etc/profile.d/conda.sh

rapids-dependency-file-generator \
--output conda \
--file_key docs \
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee env.yaml

rapids-mamba-retry env create --force -f env.yaml -n docs
conda activate docs

rapids-print-env

rapids-logger "Downloading artifacts from previous jobs"
PYTHON_CHANNEL=$(rapids-download-conda-from-s3 python)
VERSION_NUMBER=$(rapids-get-rapids-version-from-git)

rapids-mamba-retry install \
--channel "${PYTHON_CHANNEL}" \
cusignal

rapids-logger "Build Sphinx docs"
pushd docs
sphinx-build -b dirhtml source _html
sphinx-build -b text source _text
AyodeAwe marked this conversation as resolved.
Show resolved Hide resolved
popd


if [[ ${RAPIDS_BUILD_TYPE} == "branch" ]]; then
aws s3 sync --delete docs/_html "s3://rapidsai-docs/cusignal/${VERSION_NUMBER}/html"
aws s3 sync --delete docs/_text "s3://rapidsai-docs/cusignal/${VERSION_NUMBER}/txt"
fi
4 changes: 4 additions & 0 deletions conda/environments/all_cuda-118_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@ dependencies:
- notebook
- numba >=0.49.0
- numpy >=1.19,<1.24
- numpydoc
- pre-commit
- pydata-sphinx-theme
- pytest
- pytest-benchmark
- pytest-cov
- pytest-xdist
- python>=3.8,<3.11
- pytorch <=1.12.1
- scipy >=1.6.0
- sphinx-copybutton
- sphinx<6
name: all_cuda-118_arch-x86_64
16 changes: 16 additions & 0 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ files:
includes:
- checks
- cudatoolkit
- docs
- py_version
- run
- test_notebooks
Expand All @@ -29,6 +30,12 @@ files:
includes:
- checks
- py_version
docs:
output: none
includes:
- cudatoolkit
- docs
- py_version
channels:
- rapidsai
- rapidsai-nightly
Expand Down Expand Up @@ -60,6 +67,15 @@ dependencies:
- output_types: [conda, requirements]
packages:
- pre-commit
docs:
common:
- output_types: [conda, requirements]
packages:
- ipython
- numpydoc
- pydata-sphinx-theme
- sphinx<6
- sphinx-copybutton
py_version:
specific:
- output_types: conda
Expand Down
62 changes: 31 additions & 31 deletions docs/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@ cuSignal API Reference


Convolution
============
===========

Convolve
------------
--------

.. automodule:: cusignal.convolution.convolve
:members:
:undoc-members:

Correlate
------------
---------
.. automodule:: cusignal.convolution.correlate
:members:
:undoc-members:


Modulation/Demodulation
============
=======================

Demodulation
------------
Expand All @@ -31,28 +31,28 @@ Demodulation
:undoc-members:

Estimation
============
==========

Kalman Filter
------------
-------------

.. automodule:: cusignal.estimation.filters
:members:
:undoc-members:


Filtering
============
=========

Resample
------------
--------

.. automodule:: cusignal.filtering.resample
:members:
:undoc-members:

FIR Filters
------------
-----------

.. automodule:: cusignal.filtering.filtering.firfilter
:members:
Expand All @@ -63,17 +63,17 @@ FIR Filters
:undoc-members:

Channelizer
------------
-----------

.. automodule:: cusignal.filtering.channelize_poly
:members:
:undoc-members:

Filter Design
============
=============

Resample
------------
--------

.. automodule:: cusignal.filter_design.fir_filter_design
:members:
Expand All @@ -92,108 +92,108 @@ Peak Finding


Window Functions
============
================

Windows
------------
-------

.. automodule:: cusignal.windows.windows
:members:
:undoc-members:


Waveforms
============
=========

Waveform Generation
------------
-------------------

.. automodule:: cusignal.waveforms.waveforms
:members:
:undoc-members:


Spectrum Analysis
============
=================

Spectral
------------
--------

.. automodule:: cusignal.spectral_analysis.spectral
:members:
:undoc-members:

Acoustics
------------
---------

.. automodule:: cusignal.acoustics.cepstrum
:members:
:undoc-members:


Wavelets
============
========

Wavelets
------------
--------

.. automodule:: cusignal.wavelets.wavelets
:members:
:undoc-members:


B-splines
============
=========

B-splines
------------
---------

.. automodule:: cusignal.bsplines.bsplines
:members:
:undoc-members:


Utilities
============
=========

Array Tools
------------
-----------

.. automodule:: cusignal.utils.arraytools
:members:
:undoc-members:

FFTPack Helper
------------
--------------

.. automodule:: cusignal.utils.fftpack_helper
:members:
:undoc-members:


IO
============
==

Reader
------------
------

.. automodule:: cusignal.io.reader
:members:
:undoc-members:

Writer
------------
------

.. automodule:: cusignal.io.writer
:members:
:undoc-members:


Radar/Phased Array
============
==================

Radar Tools
------------
-----------

.. automodule:: cusignal.radartools.radartools
:members:
Expand Down
26 changes: 1 addition & 25 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,28 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (c) 2018-2022, NVIDIA CORPORATION.
#
# pygdf documentation build configuration file, created by
# sphinx-quickstart on Wed May 3 10:59:22 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import os
import sys
sys.path.insert(0, os.path.abspath('../..'))

# -- General configuration ------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
Expand Down Expand Up @@ -77,7 +53,7 @@
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = 'en'

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down
4 changes: 2 additions & 2 deletions python/cusignal/filtering/filtering.py
Original file line number Diff line number Diff line change
Expand Up @@ -1140,11 +1140,11 @@ def channelize_poly(x, h, n_chans):
Number of channels for channelizer

Returns
----------
-------
yy : channelized output matrix

Notes
----------
-----
Currently only supports simple channelizer where channel
spacing is equivalent to the number of channels used (zero overlap).
Number of filter taps (len of filter / n_chans) must be <=32.
Expand Down
Loading