From f7c362c5567518f759492c0943fac77fc2d10924 Mon Sep 17 00:00:00 2001 From: Olivia Appleton Date: Sun, 30 Jun 2024 23:54:19 -0500 Subject: [PATCH] Try c build again :( --- .github/workflows/pages.yml | 4 ++-- .github/workflows/python.yml | 2 +- README.rst | 8 +++++++- docs/c/p0001.rst | 2 +- docs/conf.py | 1 + 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 14fa200e..70b3d5c1 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -11,6 +11,8 @@ jobs: with: submodules: true + - run: sudo apt-get install -y clang + - name: Use Python 3.12 uses: actions/setup-python@v5 with: @@ -21,8 +23,6 @@ jobs: c/requirements.txt docs/requirements.txt - - run: sudo apt-get install -y clang - - uses: ammaraskar/sphinx-action@master with: docs-folder: "docs/" diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 479c98dc..3ab205c0 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -1,4 +1,4 @@ -name: Python +name: Py on: push diff --git a/README.rst b/README.rst index 1ae50162..60bf0c1d 100644 --- a/README.rst +++ b/README.rst @@ -9,8 +9,10 @@ LivInTheLookingGlass’s Project Euler solutions :target: https://github.com/LivInTheLookingGlass/Euler/actions/workflows/javascript.yml .. |Python| image:: https://github.com/LivInTheLookingGlass/Euler/actions/workflows/python.yml/badge.svg :target: https://github.com/LivInTheLookingGlass/Euler/actions/workflows/python.yml -.. |CodeQL| image:: https://github.com/LivInTheLookingGlass/Euler/actions/workflows/c.yml/badge.svg +.. |CodeQL| image:: https://github.com/LivInTheLookingGlass/Euler/actions/workflows/codeql.yml/badge.svg :target: https://github.com/LivInTheLookingGlass/Euler/actions/workflows/codeql.yml +.. |Pages| image:: https://github.com/LivInTheLookingGlass/Euler/actions/workflows/pages.yml/badge.svg + :target: https://github.com/LivInTheLookingGlass/Euler/actions/workflows/pages.yml .. |br| raw:: html
@@ -34,6 +36,8 @@ LivInTheLookingGlass’s Project Euler solutions +------------+---------------------+--------------+--------------+ | CodeQL Scanning | |CodeQL| | +-------------------------------------------------+--------------+ +| Documentation (in progress) | |Pages| | ++-------------------------------------------------+--------------+ This is the repository I keep for prospective employers to look at project Euler code that I have written. @@ -58,5 +62,7 @@ Makefile will direct recipes using prefixes - ``make cs*`` will go to the csharp Makefile - ``make py*`` will go to the python Makefile - ``make js*`` will go to the javascript Makefile +- Any make recipes supported by Sphinx will be redirected to the docs Makefile +- All other recipes will be run for all languages For more information, please see the README documents in each section. \ No newline at end of file diff --git a/docs/c/p0001.rst b/docs/c/p0001.rst index 84bf7a39..f8dab56f 100644 --- a/docs/c/p0001.rst +++ b/docs/c/p0001.rst @@ -3,6 +3,6 @@ C Implementation of Problem 1 View source code `here on GitHub! `_ -.. autocmodule:: ./p0001.c +.. autocmodule:: p0001.c :members: :undoc-members: diff --git a/docs/conf.py b/docs/conf.py index 1ce0aca3..9d06252a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,6 +12,7 @@ sys.path.insert(0, basedir) sys.path.insert(0, basedir + os.sep + 'python') c_autodoc_roots = [basedir + os.sep + 'c'] +c_autodoc_compilation_args = ['-std=c11', '-DAMD_COMPILER=0'] js_source_path = basedir + os.sep + 'javascript' project = 'Euler'