Skip to content

Commit

Permalink
Move documentation to diataxis (#1391)
Browse files Browse the repository at this point in the history
* Delete an old file.

* Display version number in docs.

* Move tutorials to tutorial structure.

* Move research topic tutorials to how to guides.

* Move advanced to how to guides.

* Add citation to how to guides.

* Remove certain things from the reference section.

* Move files to discussion section.

* Add community and contribution guidelines back.

* Move contributing and community guides.

* Fix some remaining tutorials.

* Remove duplicate entry.
  • Loading branch information
drvinceknight authored Jun 4, 2021
1 parent 6af4bdb commit 75ef1f2
Show file tree
Hide file tree
Showing 83 changed files with 103 additions and 694 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@
# built documents.
#
# The short X.Y version.
version = "0.0"
version = axelrod.__version__
# The full version, including alpha/beta/rc tags.
release = "0.0.1"
release = axelrod.__version__

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 16 additions & 0 deletions docs/discussion/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Discussion
==========

This section is a discussion of various aspects of Game Theory related to the
Axelrod library.

Contents:

.. toctree::
:maxdepth: 2

axelrods_tournaments.rst
strategy_archetypes.rst
overview_of_past_tournaments.rst
play_contexts.rst
community/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Tournaments
===========
Overview of past Tournaments
============================

Axelrod's first tournament
--------------------------
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _metastrategies:

Meta-Strategies
===============
Strategy Archetypes
===================

Finite State Machines
---------------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _strategies:

Accessing strategies
====================
Access collections of strategies
================================

All of the strategies are accessible from the main name space of the library.
For example::
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _tournament-results:

Accessing tournament results
============================
Access tournament results
=========================

This tutorial will show you how to access the various results of a tournament:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _morality-metrics:

Morality Metrics
================
Calculate Morality Metrics
==========================

Tyler Singer-Clark's June 2014 paper, "Morality Metrics On Iterated Prisoner’s
Dilemma Players" [Singer-Clark2014]_), describes several interesting metrics which
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Player equality
===============
Check Player equality
=====================

It is possible to test for player equality using :code:`==`::

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Citing the library
==================
Cite the library
================

We would be delighted if anyone wanted to use and/or reference this library for
their own research.
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Contributing
============
Contribute
==========

This section contains a variety of tutorials that should help you contribute to
the library.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _approximate-moran-process:

Approximate Moran Process
=========================
Create Approximate Moran Process
================================

Due to the high computational cost of a single Moran process, an approximate
Moran process is implemented that can make use of cached outcomes of games. The
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _moran-process-on-graphs:

Moran Process on Graphs
=======================
Create Moran Processes On Graphs
================================

The library also provides a graph-based Moran process [Shakarian2013]_ with
:code:`MoranProcess`. To use this feature you must supply at least one
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Spatial tournaments
===================
Create spatial tournaments
==========================

A spatial tournament is defined on a graph where the nodes correspond to players
and edges define whether or not a given player pair will have a match.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _evolvable_players:

Evolvable Players
=================
Evolve Players
==============

Several strategies in the library derive from :code:`EvolvablePlayer` which specifies methods
allowing evolutionary or particle swarm algorithms to be used with these strategies. The
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _fingerprinting:

Fingerprinting
==============
Fingerprint
===========

Ashlock Fingerprints
--------------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Noisy tournaments
=================
Include noise
=============

A common variation on iterated prisoner’s dilemma tournaments is to add
stochasticity in the choice of actions, simply called noise. This noise is
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Probabilistic Ending Tournaments
================================
Include probabilistic endings
=============================

It is possible to create a tournament where the length of each Match is not
constant for all encounters: after each turn the Match ends with a given
Expand Down
31 changes: 31 additions & 0 deletions docs/how-to/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
How to
======

This section contains short descriptions of how to accomplish specific tasks
with the Axelrod library.

.. toctree::
:maxdepth: 1

include_noise.rst
include_probabilistic_endings.rst
create_spatial_tournaments.rst
create_moran_processes_on_graphs.rst
create_approximate_moran_processes.rst
calculate_morality_metrics.rst
run_axelrods_ecological_variant.rst
fingerprint.rst
evolve_players.rst
access_collections_of_strategies.rst
classify_strategies.rst
use_strategy_transformers.rst
access_tournament_results.rst
read_and_write_interactions.rst
use_parallel_processing.rst
use_a_cache.rst
use_different_stage_games.rst
set_a_seed.rst
set_player_information.rst
check_player_equality.rst
cite_the_library.rst
contributing/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Reading and writing interactions from/to file
=============================================
Read and write interactions from/to file
========================================

When dealing with large tournaments it might be desirable to separate the
analysis from the actual running of the tournaments. This can be done by passing
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _ecological-variant:

Ecological Variant
==================
Run Axelrod's Ecological Variant
================================

In Axelrod's original work an ecological approach based on the payoff matrix of
the tournament was used to study the evolutionary stability of each strategy.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _setting_a_seed:

Setting a random seed
=====================
Set a random seed
==================

The library has a variety of strategies whose behaviour is stochastic. To ensure
reproducible results a random seed should be set. The library abstracts away the
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _player_information:

Player information
==================
Set Player information
======================

It is possible to determine what information players know about their matches.
By default all known information is given. For example let us create a match
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _using-the-cache:

Using the cache
===============
Use a cache
===========

Whilst for stochastic strategies, every repetition of a Match will give a
different result, for deterministic strategies, when there is no noise there is
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Using and playing different stage games
=======================================
Use different stage games
=========================

As described in :ref:`play_contexts` the default game used for the Prisoner's
Dilemma is given by::
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Parallel processing
===================
Use Parallel processing
=======================

When dealing with large tournaments on a multi core machine it is possible to
run the tournament in parallel **although this is not currently supported on
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ Table of Contents
-----------------

.. toctree::
:maxdepth: 3
:maxdepth: 1

tutorials/index.rst
how-to/index.rst
discussion/index.rst
reference/index.rst
community/index.rst
citing_the_library.rst


Indices and tables
Expand Down
9 changes: 2 additions & 7 deletions docs/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,9 @@ Reference

This section is the reference guide for the various components of the library.

Contents:

.. toctree::
:maxdepth: 2
:maxdepth: 1

description.rst
play_contexts.rst
overview_of_strategies.rst
all_strategies.rst
bibliography.rst
strategy_index.rst
glossary.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _strategies-index:

Strategies index
================
Strategy index
==============

Here are the docstrings of all the strategies in the library.

Expand Down
21 changes: 0 additions & 21 deletions docs/tutorials/advanced/index.rst

This file was deleted.

21 changes: 0 additions & 21 deletions docs/tutorials/further_topics/index.rst

This file was deleted.

Loading

0 comments on commit 75ef1f2

Please sign in to comment.