-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from fedebenelli/main
ford documentation
- Loading branch information
Showing
3 changed files
with
159 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Build and Deploy Documentation | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
documentation: | ||
runs-on: ubuntu-22.04 | ||
|
||
env: | ||
FC: gfortran | ||
GCC_V: 12 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Dependencies Ubuntu | ||
run: | | ||
sudo apt-get update | ||
sudo apt install -y gfortran-${GCC_V} python3-dev graphviz | ||
sudo pip install ford markdown | ||
- name: Build Developer Documentation | ||
run: | | ||
ford ford.md | ||
- name: Upload Documentation | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: documentation | ||
path: doc/ford_site | ||
if-no-files-found: error | ||
|
||
- name: Broken Link Check | ||
if: ${{ github.ref == 'refs/heads/main'}} | ||
uses: technote-space/broken-link-checker-action@v1 | ||
with: | ||
TARGET: file://${{ github.workspace }}/ford_site/index.html | ||
RECURSIVE: true | ||
ASSIGNEES: ${{ github.actor }} | ||
|
||
- name: Deploy API Documentation | ||
uses: JamesIves/github-pages-deploy-action@4.1.0 | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: gh-pages | ||
folder: doc/ford_site |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
project: ForSudoku | ||
summary: Sudoku generation and solving CLI program, written in Fortran | ||
project_github: https://github.com/vmagnin/ForSudoku | ||
author: vmagnin, nbehrnd | ||
github: https://github.com/vmagnin | ||
src_dir: src | ||
exclude_dir: test doc | ||
output_dir: doc/ford_site | ||
preprocessor: gfortran -E | ||
display: public | ||
protected | ||
private | ||
source: false | ||
proc_internals: true | ||
sort: permission-alpha | ||
docmark_alt: !> | ||
docmark: ! | ||
predocmark_alt: * | ||
print_creation_date: true | ||
creation_date: %Y-%m-%d %H:%M %z | ||
md_extensions: markdown.extensions.toc | ||
markdown.extensions.smarty | ||
graph: true | ||
license: GPL | ||
--- | ||
|
||
[TOC] | ||
|
||
{!README.md!} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters