LSST document (including LDM, DMTN) template¶
document template lets you create new documents using the lsstdoc class.
These can be project controlled documents (LPM, LSE, LDM, for example) or technical notes (DMTN, SQR, SMTN).
This page describes how to use the
For background, see Creating new documents with templates.
For help with using the
lsstdoc class, see Using the lsstdoc document class.
We intend to provide a chatbot for creating new documents that handles creating a GitHub repository, filling in the template, and deploying the document as a website. In the meantime, you can still manually create new documents with this template.
Invoking the template¶
After you have set up cookiecutter and cloned the
lsst-texmf repository, you can create a document by pointing cookiecutter at
For example, from a directory containing a
Cookiecutter will prompt you to configure your document. See the next section for details.
This section describes configurations requested by cookiecutter.
- Handle of the documentation series.
Technical notes can be
SMTN(see the DM Developer Guide for more information).
Serial number of the document. For project documents, this number is pre-assigned by DocuShare. For technical notes, you can claim the next available number yourself. These links show existing technical notes in each series:
Documents belong in specific GitHub organizations:
- Provide a URL to the document in DocuShare, if available.
Technotes might not have DocuShare handles.
Using the https://ls.st short link to the document’s version page in DocuShare is effective.
- Title of the document, without a handle prefix.
- The first and last name of the document’s primary author.
You can add additional authors later to the
\authorcommand in the generated document.
- Abstract or summary of the document.
This abstract appears both in the document’s
\setDocAbstractcommand an in the
- Year when copyright is first claimed.
- Institution that holds the document’s copyright.
true, a Creative Commons Attribution license is added to the
Deploying the document¶
These instructions will help you deploy your documentation project to GitHub and LSST the Docs. In the future, a chatbot service will automate these steps.
After creating a document directory with cookiecutter, the next step is to initialize it as a Git repository and push that repository to GitHub. Keep in mind the organization you host the repository in must match the organization name provided to cookiecutter. Also, the repository name should be the document’s handle in lowercase (for example, lsst-sqre/sqr-019 for the SQR-019 technical note).
Once the document is on GitHub, notify the #dm-docs channel on Slack that a new document is ready to be deployed to LSST the Docs.