Django administration interface for Project and related models.
Default values and other various configuration for projects, including available theme names and repository types.
File(id, project_id, parent_id, heading, slug, content, denormalized_path, ordering, status)
FileRevision(id, file_id, comment, diff, created_date, revision_number, is_reverted)
Apply the series of diffs after this revision in reverse order, bringing the content back to the state it was in this revision
ImportedFile(id, project_id, name, slug, path, md5)
Project(id, pub_date, modified_date, user_id, name, slug, description, repo, repo_type, project_url, version, copyright, theme, suffix, default_version, default_branch, requirements_file, documentation_type, path, featured, skip, use_virtualenv, django_packages_url)
A balla API to find files inside of a projects dir.
The path to the build html docs in the project.
The path to the documentation root in the project.
A balla API to find files inside of a projects dir.
Get the default version (slug).
Returns self.default_version if the version with that slug actually exists (is built and published). Otherwise returns ‘latest’.
The path to the build html docs in the project.
This class provides the functionality that makes the related-object managers available as attributes on a model class, for fields that have multiple “remote” values and have a GenericRelation defined in their model (rather than having another model pointed at them). In the example “article.publications”, the publications attribute is a ReverseGenericRelatedObjectsDescriptor instance.
Tasks related to projects, including fetching repository code, cleaning conf.py files, and rebuilding documentation.
A helper function for the celery task to do the actual doc building.
Locate the given project’s conf.py file and extract important settings, including copyright, theme, source suffix and version.
Check out or update the given project’s repository.
Utility functions used by projects.
Create a ‘diff’ from txt1 to txt2.
Find matching filenames in the current directory and its subdirectories, and return a list of matching filenames.
Run one or more commands, and return (status, out, err). If more than one command is given, then this is equivalent to chaining them together with &&; if all commands succeed, then (status, out, err) will represent the last successful command. If one command failed, then (status, out, err) will represent the failed command.
Write contents to the given filename. If the filename’s directory does not exist, it is created. Contents are written as UTF-8, ignoring any characters that cannot be encoded as UTF-8.
A detail view for a project with various dataz
The list of projects, which will optionally filter by user or tag, in which case a ‘person’ or ‘tag’ will be added to the context
our ghetto site search. see roadmap.
return a json list of project names
A detail view for a project with various dataz
This provides the fall-back routing for subdomain requests.
This was made primarily to redirect old subdomain’s to their version’d brothers.
List of all tags by most common
The view for creating a new project where the docs will be hosted as objects and edited through the site
Export a projects’ docs as a .zip file, including the .rst source
Add a file to a project, redirecting on success to the projects mgmt page
Mark a given file as deleted on POST, otherwise ask for confirmation
Return the contents of a given revision.
Edit an existing file
A view that provides diffing from current to any revision, and when posted to allows you to revert
Live preview of restructuredtext payload - currently not wired up
The view for creating a new project where the docs will be hosted as objects and edited through the site
The view for creating a new project where the docs will be hosted as objects and edited through the site
A dashboard! If you aint know what that means you aint need to. Essentially we show you an overview of your content.
Make a project as deleted on POST, otherwise show a form asking for confirmation of delete.
Edit an existing project - depending on what type of project is being edited (created or imported) a different form will be displayed
Import docs from an repo
The management view for a project, where you will have links to edit the projects’ configuration, edit the files associated with that project, etc.
Shows the available versions and lets the user choose which ones he would like to have built.