forked from twisted/twisted
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert 'Remove Lore' -- empty directories left over. Reopens: twisted…
…#7892 git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@44834 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
- Loading branch information
Showing
75 changed files
with
9,966 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env python | ||
# Copyright (c) Twisted Matrix Laboratories. | ||
# See LICENSE for details. | ||
|
||
import sys | ||
from twisted.python import filepath | ||
|
||
def updateDocumentation(project, twistedCheckoutPath, websiteCheckoutPath): | ||
""" | ||
Copy documentation for a particular project out of the craphole where lore | ||
dumps it, and into a WebSite working copy. | ||
@param generatedDocPath: The path to the root of a Twisted checkout, ie | ||
~/Projects/Twisted/tags/releases/TwistedWeb/0.5.x/ | ||
@param websiteCheckoutPath: The path to the root of a WebSite checkout, ie | ||
~/Projects/WebSite/branches/update-web-docs-123/ | ||
""" | ||
docPath = twistedCheckoutPath.child('doc').child(project) | ||
minusSVN = docPath.temporarySibling() | ||
docPath.copyTo(minusSVN) | ||
for child in minusSVN.walk(): | ||
if child.basename() == '.svn': | ||
child.remove() | ||
|
||
minusSVN.copyTo(websiteCheckoutPath.child('vhosts').child('twistedmatrix.com').child('projects').child(project).child('documentation')) | ||
minusSVN.remove() | ||
|
||
|
||
if __name__ == '__main__': | ||
if len(sys.argv) != 4: | ||
raise SystemExit("Usage: %s <project> <twisted checkout root> <website checkout root>" % (sys.argv[0],)) | ||
updateDocumentation(sys.argv[1], filepath.FilePath(sys.argv[2]), filepath.FilePath(sys.argv[3])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env python | ||
# Copyright (c) Twisted Matrix Laboratories. | ||
# See LICENSE for details. | ||
|
||
import sys, os | ||
extra = os.path.dirname(os.path.dirname(sys.argv[0])) | ||
sys.path.insert(0, extra) | ||
try: | ||
import _preamble | ||
except ImportError: | ||
sys.exc_clear() | ||
sys.path.remove(extra) | ||
|
||
from twisted.lore.scripts.lore import run | ||
run() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
\documentclass[oneside]{book} | ||
\usepackage[dvips]{graphicx} | ||
\usepackage{times,mathptmx} | ||
\usepackage{ifthen} | ||
\usepackage{hyperref} | ||
|
||
\usepackage{geometry} | ||
\geometry{verbose,letterpaper,tmargin=1in,bmargin=0.5in,lmargin=1in,rmargin=1in} | ||
|
||
\setlength{\oddsidemargin}{0in} | ||
\setlength{\textwidth}{\paperwidth} | ||
\addtolength{\textwidth}{-2in} | ||
|
||
\newcommand{\loreref}[1]{% | ||
\ifthenelse{\value{page}=\pageref{#1}}% | ||
{ (this page)}% | ||
{ (page \pageref{#1})}% | ||
} | ||
|
||
|
||
\title{The Twisted Documentation} | ||
\author{The Twisted Development Team} | ||
|
||
\tolerance=1000 | ||
\sloppy | ||
|
||
\begin{document} | ||
\maketitle | ||
\tableofcontents | ||
|
||
\chapter{Introduction} | ||
|
||
\input{vision.tex} | ||
|
||
|
||
\chapter{Getting Started} | ||
|
||
\input{servers.tex} | ||
\input{clients.tex} | ||
\input{trial.tex} | ||
\input{tutorial/index.tex} | ||
\input{tutorial/intro.tex} | ||
\input{tutorial/protocol.tex} | ||
\input{tutorial/style.tex} | ||
\input{tutorial/components.tex} | ||
\input{tutorial/backends.tex} | ||
\input{tutorial/web.tex} | ||
\input{tutorial/pb.tex} | ||
\input{tutorial/factory.tex} | ||
\input{tutorial/client.tex} | ||
\input{tutorial/library.tex} | ||
\input{tutorial/configuration.tex} | ||
\input{quotes.tex} | ||
\input{design.tex} | ||
|
||
|
||
\chapter{Networking and Other Event Sources} | ||
|
||
\input{internet-overview.tex} | ||
\input{reactor-basics.tex} | ||
\input{ssl.tex} | ||
\input{udp.tex} | ||
\input{process.tex} | ||
\input{defer.tex} | ||
\input{gendefer.tex} | ||
\input{time.tex} | ||
\input{threading.tex} | ||
\input{producers.tex} | ||
\input{choosing-reactor.tex} | ||
|
||
|
||
\chapter{High-Level Infrastructure} | ||
|
||
\input{endpoints.tex} | ||
\input{components.tex} | ||
\input{cred.tex} | ||
\input{plugin.tex} | ||
|
||
|
||
\chapter{Deploying Twisted Applications} | ||
|
||
\input{basics.tex} | ||
\input{application.tex} | ||
\input{tap.tex} | ||
|
||
|
||
\chapter{Utilities} | ||
|
||
\input{logging.tex} | ||
\input{constants.tex} | ||
\input{rdbms.tex} | ||
\input{options.tex} | ||
\input{dirdbm.tex} | ||
\input{testing.tex} | ||
|
||
|
||
\chapter{Asynchronous Messaging Protocol (AMP)} | ||
|
||
\input{amp.tex} | ||
|
||
|
||
\chapter{Perspective Broker} | ||
|
||
\input{pb.tex} | ||
\input{pb-intro.tex} | ||
\input{pb-usage.tex} | ||
\input{pb-clients.tex} | ||
\input{pb-copyable.tex} | ||
\input{pb-cred.tex} | ||
\input{pb-limits.tex} | ||
|
||
|
||
\chapter{Manual Pages} | ||
|
||
\input{../man/trial-man.tex} | ||
\clearpage | ||
\input{../man/twistd-man.tex} | ||
\clearpage | ||
\input{../man/tap2deb-man.tex} | ||
\clearpage | ||
\input{../man/tap2rpm-man.tex} | ||
|
||
|
||
\chapter{Appendix} | ||
|
||
\input{glossary.tex} | ||
\input{debug-with-emacs.tex} | ||
|
||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ Contents: | |
installation/index | ||
core/index | ||
conch/index | ||
lore/index | ||
mail/index | ||
names/index | ||
pair/index | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
|
||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
|
||
<head> | ||
<title>Your Title Here</title> | ||
</head> | ||
|
||
<body> | ||
<h1>Your Title Here</h1> | ||
|
||
<h2>Introduction</h2> | ||
|
||
<p>The introduction is an important part of your | ||
document<span class="footnote">though it should not be the most important | ||
part</span>.</p> | ||
|
||
<div class="note"> | ||
<p>It is generally a <em>very</em> good to write other section except | ||
the introduction too.</p> | ||
</div> | ||
|
||
<p> | ||
You can use the following ways to write lists: | ||
<ul> | ||
<li>Unordered lists</li> | ||
<li> | ||
<ol> | ||
<li>ordered lists</li> | ||
</ol> | ||
</li> | ||
<li><dl> | ||
<dt>defintion lists</dt> | ||
<dd>with definitions</dd> | ||
</dl> | ||
</li> | ||
</ul> | ||
</p> | ||
|
||
<p>Shell commands look like <code class="shell">ls -l</code>. Python | ||
snippets look like <code class="python">print 1</code>.</p> | ||
|
||
<p>Longer python things should be in pre</p> | ||
|
||
<pre class="python"> | ||
def foo(): | ||
pass | ||
</pre> | ||
|
||
<p>Or they can be outlined</p> | ||
|
||
<a href="rootscript.py" class="py-listing">rootscript.py</a> | ||
|
||
<p>Likewise, HTML can be outlined too:</p> | ||
|
||
<a href="example.html" class="py-listing">example.html</a> | ||
|
||
</body> </html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
:LastChangedDate: $LastChangedDate$ | ||
:LastChangedRevision: $LastChangedRevision$ | ||
:LastChangedBy: $LastChangedBy$ | ||
|
||
Examples | ||
======== | ||
|
||
- `example.html <example.html>`_ | ||
- `slides-template.tpl <slides-template.tpl>`_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
|
||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> | ||
<head> | ||
<title>Twisted Documentation: </title> | ||
<link type="text/css" rel="stylesheet" href="stylesheet.css" /> | ||
</head> | ||
|
||
<body bgcolor="white"> | ||
<div><span>Previous: <a class="previous"><span class="previous" /></a></span> | ||
<br /> | ||
<span>Next: <a class="next"><span class="next" /></a></span></div> | ||
<h1 class="title"></h1> | ||
<div class="body"> | ||
|
||
</div> | ||
</body> | ||
</html> | ||
|
Oops, something went wrong.