Merge ~cjwatson/launchpad:doc-restructuring into launchpad:master

Proposed by Colin Watson
Status: Merged
Approved by: Colin Watson
Approved revision: 59df7644390d4f88e70ed945e370abdad509ea60
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~cjwatson/launchpad:doc-restructuring
Merge into: launchpad:master
Diff against target: 289 lines (+100/-75)
8 files modified
README (+9/-67)
dev/null (+0/-1)
doc/explanation/index.rst (+1/-1)
doc/explanation/navigating.rst (+67/-0)
doc/how-to/index.rst (+1/-0)
doc/how-to/running.rst (+3/-0)
doc/index.rst (+19/-5)
doc/overview.rst (+0/-1)
Reviewer Review Type Date Requested Status
Jürgen Gmach Approve
Review via email: mp+426832@code.launchpad.net

Commit message

Restructure some bits of the developer documentation

Description of the change

These are following up on a call we had with Daniele Procida today, mostly focused on improving the home page.

To post a comment you must log in.
Revision history for this message
Jürgen Gmach (jugmac00) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/README b/README
index d09ef4f..a326348 100644
--- a/README
+++ b/README
@@ -13,11 +13,12 @@ received many contributions from many wonderful people
1313
14If you want help using Launchpad, then please visit our help wiki at:14If you want help using Launchpad, then please visit our help wiki at:
1515
16 https://help.launchpad.net16 https://help.launchpad.net/
1717
18If you'd like to contribute to Launchpad, have a look at:18If you'd like to contribute to Launchpad, have a look at:
1919
20 https://dev.launchpad.net20 https://launchpad.readthedocs.io/
21 https://dev.launchpad.net/
2122
22Alternatively, have a poke around in the code, which you probably already know23Alternatively, have a poke around in the code, which you probably already know
23how to get if you are reading this file.24how to get if you are reading this file.
@@ -27,74 +28,15 @@ Getting started
27===============28===============
2829
29There's a full guide for getting up-and-running with a development Launchpad30There's a full guide for getting up-and-running with a development Launchpad
30environment at <https://dev.launchpad.net/Getting>. When you are ready to31environment at
31submit a patch, please consult <https://dev.launchpad.net/PatchSubmission>.32<https://launchpad.readthedocs.io/en/latest/how-to/running.html>. When you are
33ready to submit a patch, please consult
34<https://dev.launchpad.net/PatchSubmission>.
3235
33Our bug tracker is at <https://bugs.launchpad.net/launchpad/> and you can get36Our bug tracker is at <https://bugs.launchpad.net/launchpad/> and you can get
34the source code any time by doing:37the source code any time by doing:
3538
36 $ git clone https://git.launchpad.net/launchpad39 $ git clone https://git.launchpad.net/launchpad
3740
3841See <https://launchpad.readthedocs.io/en/latest/explanation/navigating.html>
39Navigating the tree42for advice on navigating the code.
40-------------------
41
42The Launchpad tree is big, messy and changing. Sorry about that. Don't panic
43though, it can sense fear. Keep a firm grip on `grep` and pay attention to
44these important top-level folders:
45
46 bin/, utilities/
47 Where you will find scripts intended for developers and admins. There's
48 no rhyme or reason to what goes in bin/ and what goes in utilities/, so
49 take a look in both.
50
51 configs/
52 Configuration files for various kinds of Launchpad instances.
53 'development' and 'testrunner' are of particular interest to developers.
54
55 cronscripts/
56 Scripts that are run on actual production instances of Launchpad as
57 cronjobs.
58
59 daemons/
60 Entry points for various daemons that form part of Launchpad
61
62 database/
63 Our database schema, our sample data, and some other stuff that causes
64 fear.
65
66 doc/
67 General system-wide documentation. You can also find documentation on
68 <https://dev.launchpad.net>, in docstrings and in doctests.
69
70 lib/
71 Where the vast majority of the code lives, along with our templates, tests
72 and the bits of our documentation that are written as doctests. 'lp' and
73 'canonical' are the two most interesting packages. Note that 'canonical'
74 is deprecated in favour of 'lp'. To learn more about how the 'lp' package
75 is laid out, take a look at its docstring.
76
77 Makefile
78 Ahh, bliss. The Makefile has all sorts of goodies. If you spend any
79 length of time hacking on Launchpad, you'll use it often. The most
80 important targets are 'make clean', 'make compile', 'make schema', 'make
81 run' and 'make run_all'.
82
83 scripts/
84 Scripts that are run on actual production instances of Launchpad,
85 generally triggered by some automatic process.
86
87
88You can spend years hacking on Launchpad full-time and not know what all of
89the files in the top-level directory are for. However, here's a guide to some
90of the ones that come up from time to time.
91
92 brzplugins/
93 Breezy plugins used in running Launchpad.
94
95 sourcecode/
96 A directory into which we symlink branches of some of Launchpad's
97 dependencies. Don't ask.
98
99 zcml/
100 Various configuration files for the Zope services. Angels fear to tread.
diff --git a/doc/explanation/index.rst b/doc/explanation/index.rst
index bb30f5a..c6b72d0 100644
--- a/doc/explanation/index.rst
+++ b/doc/explanation/index.rst
@@ -8,7 +8,7 @@ Explanation
88
9 running-details9 running-details
10 framework10 framework
11 navigating
11 architecture12 architecture
12 pip13 pip
13 favicon14 favicon
14 doc-theme
diff --git a/doc/explanation/navigating.rst b/doc/explanation/navigating.rst
15new file mode 10064415new file mode 100644
index 0000000..277d452
--- /dev/null
+++ b/doc/explanation/navigating.rst
@@ -0,0 +1,67 @@
1===================
2Navigating the tree
3===================
4
5See :doc:`../how-to/running` to learn how to get Launchpad's code and set up
6a local development environment.
7
8The Launchpad tree is big, messy and changing. Sorry about that. Don't panic
9though! Keep a firm grip on ``grep`` and pay attention to
10these important top-level folders:
11
12``bin/``, ``utilities/``
13 Where you will find scripts intended for developers and admins. There's
14 no rhyme or reason to what goes in bin/ and what goes in utilities/, so
15 take a look in both.
16
17``configs/``
18 Configuration files for various kinds of Launchpad instances.
19 ``development`` and ``testrunner`` are of particular interest to developers.
20
21``cronscripts/``
22 Scripts that are run on actual production instances of Launchpad as
23 cron jobs.
24
25``daemons/``
26 Entry points for various daemons that form part of Launchpad.
27
28``database/``
29 Our database schema, our sample data, and other things related to those.
30
31``doc/``
32 General system-wide documentation. You can also find documentation on
33 the `developer wiki <https://dev.launchpad.net/>`_, in docstrings, and
34 in doctests.
35
36``lib/``
37 Where the vast majority of the code lives, along with our templates,
38 tests, and the bits of our documentation that are written as doctests.
39 ``lp`` is the most interesting package, with ``canonical`` containing
40 some things like images and style sheets. To learn more about how the
41 ``lp`` package is laid out, take a look at its docstring.
42
43``Makefile``
44 The ``Makefile`` has all sorts of goodies. If you spend any length of
45 time hacking on Launchpad, you'll use it often. The most important
46 targets are ``make clean``, ``make compile``, ``make schema``, ``make
47 run`` and ``make run_all``.
48
49``scripts/``
50 Scripts that are run on actual production instances of Launchpad,
51 generally triggered by some automatic process.
52
53
54You can spend years hacking on Launchpad full-time and not know what all of
55the files in the top-level directory are for. However, here's a guide to some
56of the ones that come up from time to time.
57
58``brzplugins/``
59 Breezy plugins used in running Launchpad.
60
61``sourcecode/``
62 A directory into which we symlink branches of some of Launchpad's
63 dependencies that haven't yet been turned into proper Python
64 dependencies.
65
66``zcml/``
67 Various configuration files for the Zope services.
diff --git a/doc/explanation/doc-theme.rst b/doc/how-to/doc-theme.rst
0similarity index 100%68similarity index 100%
1rename from doc/explanation/doc-theme.rst69rename from doc/explanation/doc-theme.rst
2rename to doc/how-to/doc-theme.rst70rename to doc/how-to/doc-theme.rst
diff --git a/doc/how-to/index.rst b/doc/how-to/index.rst
index 86b0543..2324586 100644
--- a/doc/how-to/index.rst
+++ b/doc/how-to/index.rst
@@ -19,3 +19,4 @@ How-to Guides
19 land-update-for-loggerhead19 land-update-for-loggerhead
20 update-configuration-for-testing20 update-configuration-for-testing
21 deploying-configuration-changes21 deploying-configuration-changes
22 doc-theme
diff --git a/doc/how-to/running.rst b/doc/how-to/running.rst
index 4fe9fd3..affb999 100644
--- a/doc/how-to/running.rst
+++ b/doc/how-to/running.rst
@@ -12,6 +12,9 @@ own machine, using a `LXD
12<https://linuxcontainers.org/lxd/introduction/>`_-managed container to12<https://linuxcontainers.org/lxd/introduction/>`_-managed container to
13isolate it from the rest of your system.13isolate it from the rest of your system.
1414
15After you've done this, you may want to read about
16:doc:`../explanation/navigating`.
17
15Supported operating systems18Supported operating systems
16===========================19===========================
1720
diff --git a/doc/index.rst b/doc/index.rst
index 8d2d3a5..2eb87a4 100644
--- a/doc/index.rst
+++ b/doc/index.rst
@@ -5,6 +5,19 @@ Launchpad developer documentation
5Welcome to the Launchpad developer documentation. This documentation is for5Welcome to the Launchpad developer documentation. This documentation is for
6people who want to hack on Launchpad.6people who want to hack on Launchpad.
77
8Launchpad is an open source suite of tools that help people and teams to
9work together on software projects. Unlike many open source projects,
10Launchpad isn't something you install and run yourself (although you are
11welcome to do so), instead, contributors help make `Launchpad
12<https://launchpad.net>`_ better.
13
14If you want help using Launchpad, then please visit our `user documentation
15<https://help.launchpad.net>`_.
16
17If you'd like to contribute to Launchpad, this documentation is for you.
18Alternatively, :doc:`have a poke around in the code <how-to/running>`.
19
20
8Contents21Contents
9========22========
1023
@@ -22,8 +35,6 @@ Overview
2235
23.. list-table::36.. list-table::
2437
25 * - :doc:`readme`
26 - Overview of the Launchpad tree
27 * - :doc:`strategy`38 * - :doc:`strategy`
28 - Why are we making Launchpad, and for whom?39 - Why are we making Launchpad, and for whom?
29 * - :doc:`scope`40 * - :doc:`scope`
@@ -38,9 +49,11 @@ Overview
38Project and community49Project and community
39=====================50=====================
4051
41Launchpad is a member of the Ubuntu family. It's an open source project52Launchpad is a member of the Ubuntu family, sponsored by `Canonical
42that warmly welcomes contributions, suggestions, fixes and constructive53<https://canonical.com/>`_. It's an open source project that warmly
43feedback.54welcomes contributions, suggestions, fixes and constructive feedback, and
55has received `many contributions from many wonderful people
56<https://dev.launchpad.net/Contributions>`_.
4457
45* `Code of conduct <https://ubuntu.com/community/code-of-conduct>`_58* `Code of conduct <https://ubuntu.com/community/code-of-conduct>`_
46* `Get help using Launchpad <https://help.launchpad.net/>`_59* `Get help using Launchpad <https://help.launchpad.net/>`_
@@ -56,6 +69,7 @@ Thinking about using Launchpad for your next project? `Get in touch!
56.. toctree::69.. toctree::
57 :hidden:70 :hidden:
5871
72 Home <self>
59 how-to/index73 how-to/index
60 explanation/index74 explanation/index
61 reference/index75 reference/index
diff --git a/doc/overview.rst b/doc/overview.rst
index 5ff5584..12a41dc 100644
--- a/doc/overview.rst
+++ b/doc/overview.rst
@@ -6,7 +6,6 @@ Overview
6.. toctree::6.. toctree::
7 :maxdepth: 17 :maxdepth: 1
88
9 readme
10 strategy9 strategy
11 scope10 scope
12 values11 values
diff --git a/doc/readme.rst b/doc/readme.rst
13deleted file mode 12000012deleted file mode 120000
index 59a23c4..0000000
--- a/doc/readme.rst
+++ /dev/null
@@ -1 +0,0 @@
1../README
2\ No newline at end of file0\ No newline at end of file

Subscribers

People subscribed via source and target branches

to status/vote changes: