Skip to content

Commit

Permalink
Update docs for consistency with other languages
Browse files Browse the repository at this point in the history
  • Loading branch information
fdabrandao committed Feb 15, 2023
1 parent 363bf72 commit 208ea20
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 23 deletions.
16 changes: 2 additions & 14 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
# The short X.Y version.
version = "2.0"
# The full version, including alpha/beta/rc tags.
release = '2.0.11.0-20220823'
release = "2.0.11.0-20220823"


# The language for content autogenerated by Sphinx. Refer to documentation
Expand Down Expand Up @@ -104,22 +104,10 @@
},
{
"name": "AMPL Resources",
"url": "https://developers.ampl.com",
"url": "https://dev.ampl.com",
"icon": "fas fa-book fa-fw",
"target": "_self",
},
{
"name": "AMPL Portal",
"url": "https://portal.ampl.com",
"icon": "fas fa-sign-in-alt fa-fw",
"target": "_self",
},
{
"name": "AMPL.com",
"url": "https://ampl.com",
"icon": "fas fa-home fa-fw",
"target": "_self",
},
],
"collapse_navigation": True,
"logo_text": "R API",
Expand Down
4 changes: 2 additions & 2 deletions docs/source/examples.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _secExamplesR:

R API examples
===================
R API Examples
==============

This section lists a few examples in R.
These are the same files that can be found in the *examples* directory of the
Expand Down
4 changes: 2 additions & 2 deletions docs/source/getting-started.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. lblGettingStarted:
Getting started
===============
Initial Setup
=============

Installation
------------
Expand Down
9 changes: 7 additions & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@ AMPL R API
``rAMPL`` is an interface that allows developers to access the features of `AMPL <https://ampl.com>`_ from within R.
For a quick introduction to AMPL see `Quick Introduction to AMPL <https://dev.ampl.com/ampl/introduction.html>`_.

In the same way that AMPL's syntax matches naturally the mathematical description of the model,
the input and output data matches naturally R data types such as vectors and dataframes.

All model generation and solver interaction is handled directly by AMPL, which leads to
great stability and speed; the library just acts as an intermediary, and the added overhead (in terms of memory and
CPU usage) depends mostly on how much data is sent and read back from AMPL, the size of the expanded model as such is irrelevant.

With ``rAMPL`` you can model and solve large scale optimization problems in R with the performance of heavily optimized C code
without losing model readability.
without losing model readability. The same model can be deployed on applications
built on different languages by just switching the API used.

Contents
--------
Expand All @@ -22,7 +27,7 @@ Contents

intro
getting-started
class-structure
quick-start
class-structure
reference
examples
4 changes: 2 additions & 2 deletions docs/source/quick-start.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _secRQuickStart:

R quick start
==================
Quick Start
===========

This section will show a simple example to illustrate various functionalities of the AMPL R interface.
The full example prints the version of the AMPL interpreter used, loads a model from file and the corresponding
Expand Down
2 changes: 1 addition & 1 deletion docs/source/reference.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.. _secReferenceR:

R API reference
R API Reference
===============

AMPL classes
Expand Down

0 comments on commit 208ea20

Please sign in to comment.