Skip to content

Commit

Permalink
Merge pull request #530 from google:deploy_docs2
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 568516725
  • Loading branch information
JAXopt authors committed Sep 26, 2023
2 parents d82e448 + 76275e3 commit 24654fc
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: docs

on:
push:
branches: ["main"]

jobs:
build-and-deploy:
name: "Build and deploy documentation"
runs-on: ubuntu-latest
steps:
- uses: "actions/checkout@v3"
- name: Set up Python 3.11
uses: "actions/setup-python@v4"
with:
python-version: 3.11
cache: 'pip'
- run: pip install -r docs/requirements.txt
- name: Build documentation
run: cd docs && make html
- uses: cpina/github-action-push-to-another-repository@main
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
with:
source-directory: 'docs/_build/html'
destination-github-username: 'jaxopt'
destination-repository-name: 'jaxopt.github.io'
user-email: [email protected]
target-branch: main
target-directory: dev
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- uses: "actions/setup-python@v4"
with:
python-version: "${{ matrix.python-version }}"
cache: 'pip'
- name: Install dependencies
run: |
set -xe
Expand Down Expand Up @@ -59,6 +60,7 @@ jobs:
uses: "actions/setup-python@v4"
with:
python-version: 3.11
cache: 'pip'
- name: Install dependencies
run: |
set -xe
Expand Down
5 changes: 4 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
JAXopt
======

.. warning::
This is the documentation for the development version of JAXopt.

Hardware accelerated, batchable and differentiable optimizers in
`JAX <https://github.com/google/jax>`_.

Expand All @@ -13,7 +16,7 @@ Hardware accelerated, batchable and differentiable optimizers in
- **Differentiable:** optimization problem solutions can be differentiated with
respect to their inputs either implicitly or via autodiff of unrolled
algorithm iterations.

0
Installation
------------

Expand Down

0 comments on commit 24654fc

Please sign in to comment.