Skip to content

Commit 254c73e

Browse files
committed
Add FORD gh-pages
1 parent 8c5f089 commit 254c73e

File tree

5 files changed

+57
-21
lines changed

5 files changed

+57
-21
lines changed

.github/workflows/doc-deployment.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: doc-deployment
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build-and-deploy:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-python@v1
11+
with:
12+
python-version: '3.x'
13+
14+
- name: Install dependencies
15+
run: pip install -v ford==6.1.5
16+
17+
- name: Build Documentation
18+
run: ford API-doc-FORD-file.md
19+
20+
- uses: JamesIves/[email protected]
21+
if: github.event_name == 'push' && github.repository == 'fortran-lang/fftpack' && ( startsWith( github.ref, 'refs/tags/' ) || github.ref == 'refs/heads/main' )
22+
with:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
BRANCH: gh-pages
25+
FOLDER: API-doc
26+
CLEAN: true

.github/workflows/fpm.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ jobs:
5050
- name: Build fftpack
5151
run: |
5252
gfortran --version
53-
fpm build --flag "-O2"
53+
fpm build
54+
5455
- name: Run tests
5556
run: |
5657
gfortran --version
57-
fpm test --flag "-O2"
58+
fpm test
59+

API-doc-FORD-file.md

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
project: fftpack
3-
summary: A opensource package fftpack v4.0.0 for (modern) Fortran
2+
project: Fortran-lang/fftpack
3+
summary: A modernized, opensource package fftpack for (modern) Fortran
44
src_dir: src/
55
output_dir: API-doc
66
page_dir: doc/
@@ -16,20 +16,26 @@ graph_maxdepth: 5
1616
coloured_edges: true
1717
sort: permission-alpha
1818
extra_mods: iso_fortran_env:https://gcc.gnu.org/onlinedocs/gfortran/ISO_005fFORTRAN_005fENV.html
19-
iso_c_binding:https://gcc.gnu.org/onlinedocs/gfortran/ISO_005fC_005fBINDING.html#ISO_005fC_005fBINDING
2019
print_creation_date: true
2120
creation_date: %Y-%m-%d %H:%M %z
2221
project_github: https://github.com/fortran-lang/fftpack
22+
project_download: https://github.com/fortran-lang/fftpack/archive/HEAD.zip
23+
project_website: https://fortran-lang.github.io/fftpack/
24+
favicon: doc/media/favicon.ico
2325
license: by-sa
24-
author: Paul N. Swarztrauber & fftpack contributors
25-
github: https://github.com/fortran-lang/fftpack
26+
author: Paul N. Swarztrauber & fortran-lang/fftpack contributors
27+
author_pic: https://fortran-lang.org/assets/img/fortran_logo_512x512.png
28+
author_email: [email protected]
29+
github: https://github.com/fortran-lang
30+
twitter: https://twitter.com/fortranlang
31+
website: https://fortran-lang.org
2632
dbg: true
2733
parallel: 4
2834
---
2935

3036
[TOC]
3137

32-
@warning This API documentation for the fortran-lang/fftpack v4.0.0 is a work in progress.
38+
@warning This API documentation for the Fortran-lang/fftpackis a work in progress.
3339

3440
Fortran FFTPACK API Documentation
3541
=================================
@@ -51,12 +57,12 @@ cd fftpack
5157
```
5258

5359
### Build with [fortran-lang/fpm](https://github.com/fortran-lang/fpm)
54-
Fortran Package Manager (fpm) is a great package manager and build system for Fortran.
60+
Fortran Package Manager (fpm) is a package manager and build system for Fortran.
5561
You can build using provided `fpm.toml`:
5662
```bash
57-
fpm build --flag "-O2"
58-
fpm test --flag "-O2" --list
59-
fpm test --flag "-O2" <test_name, see `fpm.toml` or list>
63+
fpm build
64+
fpm test --list
65+
fpm test <test_name, see `fpm.toml` or list>
6066
```
6167
To use `fftpack` within your `fpm` project, add the following to your `fpm.toml` file:
6268
```toml
@@ -71,7 +77,7 @@ make
7177
```
7278

7379
## Links
74-
[netlib/dfftpack1.0(fftpack4.0)](http://www.netlib.org/fftpack/)
75-
[Documents of fft routines in GNU/gsl based on `netlib/fftpack`](https://www.gnu.org/software/gsl/doc/html/fft.html#)
76-
[Documents of scipy.fftpack](https://docs.scipy.org/doc/scipy/reference/fftpack.html)
77-
[NACR/FFTPACK 5.1](https://www2.cisl.ucar.edu/resources/legacy/fft5)
80+
- [netlib/dfftpack1.0(fftpack4.0)](http://www.netlib.org/fftpack/)
81+
- [Documents of fft routines in GNU/gsl based on `netlib/fftpack`](https://www.gnu.org/software/gsl/doc/html/fft.html#)
82+
- [Documents of scipy.fftpack](https://docs.scipy.org/doc/scipy/reference/fftpack.html)
83+
- [NACR/FFTPACK 5.1](https://www2.cisl.ucar.edu/resources/legacy/fft5)

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# FFTPACK
22

3-
[![Actions Status](https://github.com/fortran-lang/fftpack/workflows/fpm/badge.svg)](https://github.com/fortran-lang/fftpack/actions)
43

54
A package of fortran subprograms for the fast fourier transform of periodic and other symmetric sequences.
65

6+
[![Actions Status](https://github.com/fortran-lang/fftpack/workflows/fpm/badge.svg)](https://github.com/fortran-lang/fftpack/actions)
7+
[![Actions Status](https://github.com/fortran-lang/fftpack/workflows/doc-deployment/badge.svg)](https://github.com/fortran-lang/fftpack/actions)
8+
79
## Getting started
810
### Get the code
911
```bash
@@ -32,7 +34,7 @@ make
3234
```
3335

3436
## Links
35-
[netlib/dfftpack1.0(fftpack4.0)](http://www.netlib.org/fftpack/)
36-
[Documents of fft routines in GNU/gsl based on `netlib/fftpack`](https://www.gnu.org/software/gsl/doc/html/fft.html#)
37-
[Documents of scipy.fftpack](https://docs.scipy.org/doc/scipy/reference/fftpack.html)
38-
[NACR/FFTPACK 5.1](https://www2.cisl.ucar.edu/resources/legacy/fft5)
37+
- [netlib/dfftpack1.0(fftpack4.0)](http://www.netlib.org/fftpack/)
38+
- [Documents of fft routines in GNU/gsl based on `netlib/fftpack`](https://www.gnu.org/software/gsl/doc/html/fft.html#)
39+
- [Documents of scipy.fftpack](https://docs.scipy.org/doc/scipy/reference/fftpack.html)
40+
- [NACR/FFTPACK 5.1](https://www2.cisl.ucar.edu/resources/legacy/fft5)

doc/media/favicon.ico

16.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)