Skip to content

Commit

Permalink
Merge pull request #29 from stockeh/add-docs
Browse files Browse the repository at this point in the history
Convert to using Sphinx for docs
  • Loading branch information
stockeh authored Nov 9, 2024
2 parents 6278d40 + cf41878 commit 525f52a
Show file tree
Hide file tree
Showing 42 changed files with 474 additions and 235 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<p align="center">
<img src="https://github.com/user-attachments/assets/57405cc1-36f9-4848-b507-e8c84c922d11#gh-dark-mode-only" alt="logo">
<img src="docs/src/_static/dark-mode-logo.svg#gh-dark-mode-only" alt="logo">
</p>
<p align="center">
<img src="https://github.com/user-attachments/assets/831cf205-0d56-49ac-8b8d-fc16be370cca#gh-light-mode-only" alt="logo">
<img src="docs/src/_static/light-mode-logo.svg#gh-light-mode-only" alt="logo">
</p>

#
Expand Down
1 change: 0 additions & 1 deletion docs/.gitignore

This file was deleted.

50 changes: 50 additions & 0 deletions docs/Doxyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
################################################################################
# Primary project setup. #
################################################################################

PROJECT_NAME = "MLX-Optimizers"
OUTPUT_DIRECTORY = build
XML_OUTPUT = xml
HTML_OUTPUT = html
STRIP_FROM_PATH = ../
INPUT = ../mlx_optimizers
FILE_PATTERNS = *.py
EXCLUDE_PATTERNS = */private/*
CREATE_SUBDIRS = NO
FULL_PATH_NAMES = YES
RECURSIVE = YES
GENERATE_HTML = YES
GENERATE_LATEX = NO
GENERATE_XML = YES
XML_PROGRAMLISTING = YES

################################################################################
# Doxygen preprocessor / parser control. #
################################################################################

ENABLE_PREPROCESSING = YES
MACRO_EXPANSION = YES
EXPAND_ONLY_PREDEF = NO
SKIP_FUNCTION_MACROS = NO

################################################################################
# Compound extraction control. #
################################################################################

EXTRACT_ALL = YES
EXTRACT_PACKAGE = YES
EXTRACT_STATIC = YES
CASE_SENSE_NAMES = NO

################################################################################
# Docstring control / customization. #
################################################################################

JAVADOC_AUTOBRIEF = YES

################################################################################
# Warning suppression. #
################################################################################

QUIET = YES
WARN_IF_UNDOCUMENTED = NO
6 changes: 3 additions & 3 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?= -W
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SOURCEDIR = src
BUILDDIR = build

# Put it first so that "make" without argument is like "make help".
Expand Down
35 changes: 0 additions & 35 deletions docs/make.bat

This file was deleted.

Binary file removed docs/media/rosenbrock_all.png
Binary file not shown.
1 change: 0 additions & 1 deletion docs/source/CHANGELOG.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/source/CONTRIBUTING.md

This file was deleted.

Empty file removed docs/source/_static/css/custom.css
Empty file.
Binary file removed docs/source/_static/favicon.ico
Binary file not shown.
121 changes: 0 additions & 121 deletions docs/source/conf.py

This file was deleted.

27 changes: 0 additions & 27 deletions docs/source/index.md

This file was deleted.

27 changes: 0 additions & 27 deletions docs/source/installation.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/source/overview.md

This file was deleted.

1 change: 1 addition & 0 deletions docs/src/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
../../CHANGELOG.md
1 change: 1 addition & 0 deletions docs/src/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
../../.github/CONTRIBUTING.md
31 changes: 31 additions & 0 deletions docs/src/_autosummary/mlx_optimizers.ADOPT.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
mlx\_optimizers.ADOPT
=====================

.. currentmodule:: mlx_optimizers

.. autoclass:: ADOPT







.. image:: mlx_optimizers/../../_static/media/rosenbrock_ADOPT.png
:align: center







.. rubric:: Methods

.. autosummary::

~ADOPT.__init__
~ADOPT.apply_single
~ADOPT.init_single


31 changes: 31 additions & 0 deletions docs/src/_autosummary/mlx_optimizers.DiffGrad.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
mlx\_optimizers.DiffGrad
========================

.. currentmodule:: mlx_optimizers

.. autoclass:: DiffGrad







.. image:: mlx_optimizers/../../_static/media/rosenbrock_DiffGrad.png
:align: center







.. rubric:: Methods

.. autosummary::

~DiffGrad.__init__
~DiffGrad.apply_single
~DiffGrad.init_single


Loading

0 comments on commit 525f52a

Please sign in to comment.