Skip to content

Commit

Permalink
Prep for building documentation
Browse files Browse the repository at this point in the history
Python is easy
Next step is C,
Then JavaScript,
Then C#
Hopefully I don't need to scrape comments and do it manually
  • Loading branch information
LivInTheLookingGlass committed Jun 28, 2024
1 parent ab9cc1d commit 6334b61
Show file tree
Hide file tree
Showing 95 changed files with 1,472 additions and 412 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ jobs:
with:
submodules: true

- name: Use Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
cache: 'pip'
cache-dependency-path: |
python/requirements.txt
c/requirements.txt
docs/requirements.txt
- uses: ammaraskar/sphinx-action@master
with:
docs-folder: "docs/"
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ venv/**
**.pdb
csharp/*/obj
csharp/*/bin
**/TestResults
**/TestResults
docs/_build
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
PY?=python3
PROXY?=

html:
cd docs && $(make) $(MFLAGS)

py%:
cd python && $(MAKE) $* $(MFLAGS)

Expand Down
28 changes: 0 additions & 28 deletions README.md

This file was deleted.

62 changes: 62 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
LivInTheLookingGlass’s Project Euler solutions
==============================================

.. |C| image:: https://github.com/LivInTheLookingGlass/Euler/actions/workflows/c.yml/badge.svg
:target: https://github.com/LivInTheLookingGlass/Euler/actions/workflows/c.yml
.. |C#| image:: https://github.com/LivInTheLookingGlass/Euler/actions/workflows/csharp.yml/badge.svg
:target: https://github.com/LivInTheLookingGlass/Euler/actions/workflows/csharp.yml
.. |JavaScript| image:: https://github.com/LivInTheLookingGlass/Euler/actions/workflows/javascript.yml/badge.svg
: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
:target: https://github.com/LivInTheLookingGlass/Euler/actions/workflows/codeql.yml
.. |br| raw:: html

<br/>
.. |total| replace:: 642

+------------+---------------------+--------------+--------------+
| Language | Version | Solved | Status |
+============+=====================+==============+==============+
| C | C11+ in: |br| | 17 / |total| | |C| |
| | ``gcc``, ``pcc``, | | |
| | ``tcc``, |br| | | |
| | ``clang``, ``msvc`` | | |
+------------+---------------------+--------------+--------------+
| C# | .NET 5+ | 1 / |total| | |C#| |
+------------+---------------------+--------------+--------------+
| JavaScript | Node 12+ | 2 / |total| | |JavaScript| |
+------------+---------------------+--------------+--------------+
| Python | CPython 3.6+ |br| | 70 / |total| | |Python| |
| | Pypy 3.8+ |br| | | |
| | GraalPy 23.1+ | | |
+------------+---------------------+--------------+--------------+
| CodeQL Scanning | |CodeQL| |
+-------------------------------------------------+--------------+

This is the repository I keep for prospective employers to look at
project Euler code that I have written.

This is useful because it has defined problems and answers such that you
can compare answers with other people.

All solutions are tested against multiple operating systems and
language/compiler versions. For more information, see
``.github/workflows/``

This is NOT meant to help others on Project Euler problems
----------------------------------------------------------

If you are working on Project Euler problems, DO NOT use this as a source
-------------------------------------------------------------------------

The repo is divided into sections for each language. The top-level
Makefile will direct recipes using prefixes

- ``make c*`` will go to the c Makefile
- ``make cs*`` will go to the csharp Makefile
- ``make py*`` will go to the python Makefile
- ``make js*`` will go to the javascript Makefile

For more information, please see the README documents in each section.
115 changes: 0 additions & 115 deletions c/README.md

This file was deleted.

Loading

0 comments on commit 6334b61

Please sign in to comment.