Skip to content

Commit 16de5ec

Browse files
Mathias Svenssonzachriggle
Mathias Svensson
authored andcommitted
Fix a lot of documentation (Gallopsled#675)
1 parent 5c804d4 commit 16de5ec

File tree

10 files changed

+40
-18
lines changed

10 files changed

+40
-18
lines changed

LICENSE-pwntools.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ directories:
1313
- pwnlib/data/
1414

1515

16-
Copyright (c) 2015 Gallopsled and Zach Riggle
16+
Copyright (c) 2015 Gallopsled et al.
1717

1818
Permission is hereby granted, free of charge, to any person obtaining a copy
1919
of this software and associated documentation files (the "Software"), to deal

README.md

+14-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# pwntools - CTF toolkit
22
![pwntools logo](https://github.com/Gallopsled/pwntools/blob/stable/docs/source/logo.png?raw=true)
33

4-
[![Docs latest](https://readthedocs.org/projects/pwntools/badge/?version=latest)](https://pwntools.readthedocs.org/)
5-
[![Docs 2.2.0](https://readthedocs.org/projects/pwntools/badge/?version=2.2.0)](https://pwntools.readthedocs.org/en/2.2.0)
4+
[![Docs dev](https://readthedocs.org/projects/pwntools/badge/?version=dev)](https://docs.pwntools.com/en/dev)
5+
[![Docs beta](https://readthedocs.org/projects/pwntools/badge/?version=beta)](https://docs.pwntools.com/en/beta)
6+
[![Docs stable](https://readthedocs.org/projects/pwntools/badge/?version=stable)](https://docs.pwntools.com/en/stable)
67
[![PyPI](https://img.shields.io/pypi/v/pwntools.svg?style=flat)](https://pypi.python.org/pypi/pwntools/)
7-
[![Gittip](https://img.shields.io/gittip/gallopsled.svg?style=flat)](https://www.gittip.com/gallopsled/)
88
[![Travis](https://travis-ci.org/Gallopsled/pwntools.svg?branch=stable)](https://travis-ci.org/Gallopsled/pwntools)
99
[![Coveralls](https://img.shields.io/coveralls/Gallopsled/pwntools/stable.svg)](https://coveralls.io/github/Gallopsled/pwntools?branch=stable)
1010
[![Twitter](https://img.shields.io/badge/twitter-pwntools-4099FF.svg?style=flat)](https://twitter.com/pwntools)
@@ -31,7 +31,7 @@ It will drop you into a clean, Docker-ized container. There is nothing of value
3131
[key]: https://gist.githubusercontent.com/zachriggle/efa2e0080ae6de2e8344/raw/4b503e9db54f009d97477d03d4ba5678471f8ff0/id_rsa
3232

3333
# Documentation
34-
Our documentation is available at [pwntools.readthedocs.org](https://pwntools.readthedocs.org/)
34+
Our documentation is available at [docs.pwntools.com](https://docs.pwntools.com/)
3535

3636
To get you started, we've provided some example solutions for past CTF challenges in our [write-ups repository](https://github.com/Gallopsled/pwntools-write-ups).
3737

@@ -44,10 +44,18 @@ Most of the functionality of pwntools is self-contained and Python-only. You sh
4444
```sh
4545
apt-get update
4646
apt-get install python2.7 python-pip python-dev git libssl-dev
47-
pip install --upgrade git+https://github.com/Gallopsled/pwntools.git
47+
48+
# For cutting edge:
49+
pip install --upgrade git+https://github.com/Gallopsled/pwntools.git@dev
50+
51+
# If you want early access to the next release to help file bugs:
52+
pip install --upgrade git+https://github.com/Gallopsled/pwntools.git@beta
53+
54+
# If you just want it to work
55+
pip install pwntools
4856
```
4957

50-
However, some of the features (assembling/disassembling foreign architectures) require non-Python dependencies. For more information, see the [complete installation instructions here](https://pwntools.readthedocs.org/en/latest/install.html).
58+
However, some of the features (assembling/disassembling foreign architectures) require non-Python dependencies. For more information, see the [complete installation instructions here](https://docs.pwntools.com/en/dev/install.html).
5159

5260

5361
# Contribution

docs/source/conf.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575

7676
# General information about the project.
7777
project = u'pwntools'
78-
copyright = u'2015, Zach Riggle'
78+
copyright = u'2016, Gallopsled et al.'
7979

8080
# The version info for the project you're documenting, acts as replacement for
8181
# |version| and |release|, also used in various other places throughout the
@@ -217,7 +217,7 @@
217217
# (source start file, target name, title, author, documentclass [howto/manual]).
218218
latex_documents = [
219219
('index', 'pwntools.tex', u'pwntools Documentation',
220-
u'2015, Zach Riggle', 'manual'),
220+
u'2016, Gallopsled et al.', 'manual'),
221221
]
222222

223223
intersphinx_mapping = {'python': ('https://docs.python.org/2.7', None),
@@ -250,7 +250,7 @@
250250
# (source start file, name, description, authors, manual section).
251251
man_pages = [
252252
('index', 'pwntools', u'pwntools Documentation',
253-
[u'2015, Zach Riggle'], 1)
253+
[u'2016, Gallopsled et al.'], 1)
254254
]
255255

256256
# If true, show URL addresses after external links.

docs/source/index.rst

+14
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ pwntools
55
Written in Python, it is designed for rapid prototyping and development,
66
and intended to make exploit writing as simple as possible.
77

8+
The primary location for this documentation is at docs.pwntools.com_, which uses
9+
readthedocs_. It comes in three primary flavors:
10+
11+
- Stable_
12+
- Beta_
13+
- Dev_
14+
15+
.. _readthedocs: https://readthedocs.org
16+
.. _docs.pwntools.com: https://docs.pwntools.com
17+
.. _Stable: https://docs.pwntools.com/en/stable
18+
.. _Beta: https://docs.pwntools.com/en/beta
19+
.. _Dev: https://docs.pwntools.com/en/dev
20+
21+
822
Getting Started
923
---------------
1024

examples/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ the pwntools project.
44

55
We have a plan to create a separate repository with examples, primarily
66
exploits. Until we do so, we recommend new users to look at
7-
https://pwntools.readthedocs.org, as this is a better overview of our features.
7+
https://docs.pwntools.com, as this is a better overview of our features.
88

99
In no particular order the docstrings for each example:
1010

examples/gen-README.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
We have a plan to create a separate repository with examples, primarily
1313
exploits. Until we do so, we recommend new users to look at
14-
https://pwntools.readthedocs.org, as this is a better overview of our features.
14+
https://docs.pwntools.com, as this is a better overview of our features.
1515
1616
In no particular order the docstrings for each example:
1717

extra/docker/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
############################################################
55

66
FROM ubuntu:trusty
7-
MAINTAINER Maintainer Zach Riggle
7+
MAINTAINER Maintainer Gallopsled et al.
88

99
RUN apt-get update && apt-get install -y software-properties-common
1010
RUN apt-add-repository --yes ppa:pwntools/binutils

pwnlib/asm.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def which_binutils(util):
133133
log.warning("""
134134
Could not find %(util)r installed for %(context)s
135135
Try installing binutils for this architecture:
136-
https://pwntools.readthedocs.org/en/latest/install/binutils.html
136+
https://docs.pwntools.com/en/dev/install/binutils.html
137137
""".strip() % locals())
138138
raise Exception('Could not find %(util)r installed for %(context)s' % locals())
139139

@@ -179,7 +179,7 @@ def _assembler():
179179
version = re.search(r' (\d\.\d+)', result).group(1)
180180
if version < '2.19':
181181
log.warn_once('Your binutils version is too old and may not work!\n' + \
182-
'Try updating with: https://pwntools.readthedocs.org/en/latest/install/binutils.html\n' + \
182+
'Try updating with: https://docs.pwntools.com/en/dev/install/binutils.html\n' + \
183183
'Reported Version: %r' % result.strip())
184184

185185

pwnlib/testexample.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
of the functionality. You can also add module-level doctests.
44
55
You can see what the documentation for this module will look like here:
6-
https://pwntools.readthedocs.org/en/latest/testexample.html
6+
https://docs.pwntools.com/en/dev/testexample.html
77
88
The tests for this module are run when the documentation is automatically-generated
99
by Sphinx. This particular module is invoked by an "automodule" directive, which

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676
entry_points = {'console_scripts': console_scripts},
7777
scripts = glob.glob("bin/*"),
7878
description = "CTF framework and exploit development library.",
79-
author = "Zach Riggle",
80-
author_email = "[email protected]",
79+
author = "Gallopsled et al.",
80+
author_email = "#pwntools @ freenode.net",
8181
url = 'https://pwntools.com',
8282
download_url = "https://pwntools.com/tarball/stable",
8383
install_requires = install_requires,

0 commit comments

Comments
 (0)