Skip to content

Commit

Permalink
Merge pull request haskell#9379 from malteneuss/top-level-guides-and-…
Browse files Browse the repository at this point in the history
…reference

Restructure user guide into top-level guides, reference and explanation parts
  • Loading branch information
mergify[bot] authored Nov 5, 2023
2 parents 7691c45 + 759ba8e commit 2fca50b
Show file tree
Hide file tree
Showing 18 changed files with 350 additions and 420 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ cabal-testsuite/**/haddocks
# python artifacts from documentation builds
*.pyc
.python-sphinx-virtualenv/
venv
.venv
/doc/.skjold_cache/

# macOS folder metadata
Expand Down
5 changes: 2 additions & 3 deletions doc/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{% extends "!layout.html" %}

{% block menu %}
{{ super() }}
<a href="cabal-projectindex.html">Reference</a>
{{ super() }}
<a href="cabal-syntax-quicklinks.html">Cabal Syntax Quicklinks</a>
<a href="genindex.html">Index</a>
{% endblock %}

6 changes: 0 additions & 6 deletions doc/bugs-and-stability.rst

This file was deleted.

6 changes: 3 additions & 3 deletions doc/intro.rst → doc/cabal-context.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ use Hackage_ which is Haskell's central
package archive that contains thousands of libraries and applications in
the Cabal package format.

Introduction
============
What Cabal does
===============

Cabal is a package system for Haskell software. The point of a package
system is to enable software developers and users to easily distribute,
Expand Down Expand Up @@ -122,7 +122,7 @@ the package depends on.

For full details on what goes in the ``.cabal`` and ``Setup.hs`` files,
and for all the other features provided by the build system, see the
section on :doc:`developing packages <developing-packages>`.
section on :doc:`How to package Haskell code <how-to-package-haskell-code>`.

Cabal featureset
----------------
Expand Down
10 changes: 0 additions & 10 deletions doc/misc.rst → doc/cabal-interface-stability.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
Reporting bugs and deficiencies
===============================

Please report any flaws or feature requests in the `bug
tracker <https://github.com/haskell/cabal/issues>`__.

For general discussion or queries email the libraries mailing list
libraries@haskell.org. There is also a development mailing list
cabal-devel@haskell.org.

Stability of Cabal interfaces
=============================

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Package Description
===================
Package Description — <package>.cabal File
==========================================

The package description file, commonly known as "the Cabal file",
describes the contents of a package.
The Cabal package is the unit of distribution. When installed, its
purpose is to make available:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cabal.project Reference
=======================
Project Description — cabal.project File
========================================

``cabal.project`` files support a variety of options which configure the
details of your build. The general syntax of a ``cabal.project`` file is
Expand Down
6 changes: 3 additions & 3 deletions doc/cabaldomain.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,9 +598,9 @@ class CabalConfigFieldXRef(CabalFieldXRef):
#

class ConfigFieldIndex(Index):
name = 'projectindex'
localname = "Cabal reference"
shortname = "Reference"
name = 'syntax-quicklinks'
localname = "Cabal Syntax Quicklinks"
shortname = "Quicklinks"

class Entry(object):
def __init__(self, typ, name, doc, anchor, meta):
Expand Down
7 changes: 0 additions & 7 deletions doc/concepts-and-development.rst

This file was deleted.

2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
templates_path = ['_templates']
source_suffix = '.rst'
source_encoding = 'utf-8-sig'
master_doc = 'index'
root_doc = 'index'

# extlinks -- see http://www.sphinx-doc.org/en/stable/ext/extlinks.html
extlinks = {
Expand Down
2 changes: 1 addition & 1 deletion doc/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,4 @@ What Next?
Now that you know how to set up a simple Haskell package using Cabal, check out
some of the resources on the Haskell website's `documentation page
<https://www.haskell.org/documentation/>`__ or read more about packages and
Cabal on the :doc:`introduction <intro>` page.
Cabal on the :doc:`What Cabal does <cabal-context>` page.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _nix-style-builds:

Nix-style Local Builds
======================
How to build locally like in Nix
================================

Nix-style local builds are a new build system implementation inspired by Nix.
The Nix-style local build system is commonly called "v2-build" for short
Expand Down
Loading

0 comments on commit 2fca50b

Please sign in to comment.