Skip to content

Commit 18c3e98

Browse files
authored
Update docs for 2.0 (#1248)
2 parents 444c168 + 308a164 commit 18c3e98

20 files changed

+676
-557
lines changed

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
source_suffix = ".rst"
4343
master_doc = "index"
4444
today_fmt = "%A, %d %B %Y at %H:%M"
45-
language = None
45+
language = "en"
4646
exclude_patterns = []
4747
pygments_style = "sphinx"
4848
pygments_dark_style = "monokai"

docs/source/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ JSON files. See the :ref:`a_breakdown_storage` section for more details.
2727

2828
Any operating system that can run Python 3 and has the Qt 5 libraries should be able to run
2929
novelWriter. It runs fine on Linux, Windows and macOS, and users have tested it on other platforms
30-
too. novelWriter can be run directly from the Python source, installed from the pip tool. See
31-
:ref:`a_started` for more details.
30+
too. novelWriter can be run directly from the Python source, or installed from packages or the pip
31+
tool. See :ref:`a_started` for more details.
3232

3333
.. note::
3434
Version 1.5 introduced a few changes that will require you to make a few minor modifications to

docs/source/int_customise.rst

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,3 @@ For novelWriter to be able to locate the custom theme files, you must copy them
5858

5959
Once the files are copied there, they should show up in :guilabel:`Preferences` with the label you
6060
set as ``name`` inside the file.
61-
62-
63-
Theme CSS Files
64-
---------------
65-
66-
If you wish, you can also modify the CSS styles of the GUI in addition to change colour settings.
67-
This is only available for GUI themes, and you do this by creating a file with the exact same file
68-
name as the ``.conf`` file with colour settings and give it the ``.qss`` extension.
69-
70-
On Windows, file extensions may not be visible by default, so make sure you only have one file
71-
extension, and don't end up with two.
72-
73-
The QSS files are Qt Style Sheet files. See Qt's
74-
`The Style Sheet Syntax <https://doc.qt.io/qt-5/stylesheet-syntax.html>`_ documentation for more
75-
details.

docs/source/int_introduction.rst

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
Key Features
55
************
66

7-
novelWriter is a multi-document plain text editor using a markup syntax inspired by markdown to
7+
novelWriter is a multi-document plain text editor using a markup syntax inspired by Markdown to
88
apply simple formatting to the text. It is designed for writing novels, so the formatting features
9-
are limited. Your novel project is organised as a collection of separate plain text documents
10-
instead of a single, large document.
9+
are limited to those relevant for this purpose. Your novel project is organised as a collection of
10+
separate plain text documents instead of a single, large document.
1111

1212
Below are some key features of novelWriter.
1313

@@ -27,7 +27,9 @@ Below are some key features of novelWriter.
2727
You can split your novel project up into as many individual documents as you want to. When you
2828
build the project, they are all glued together in the top-to-bottom order in which they appear
2929
in the project tree. You can use as few text documents as you like, but splitting the project up
30-
into chapters and scenes means you can easily reorder them using the drag and drop feature.
30+
into chapters and scenes means you can easily reorder them using the drag and drop feature. You
31+
can start out with a few documents and then later split the document into multiple documents
32+
based on its headers.
3133

3234
**Keep track of your plot elements**
3335
All notes in your project can be assigned a *tag* you can *reference* from any other document or
@@ -36,11 +38,12 @@ Below are some key features of novelWriter.
3638
keywords.
3739

3840
**Get an overview of your plot elements**
39-
In the :guilabel:`Outline` tab on the main window you can see an outline of all the chapter and
40-
scene sections of your project. If they have any references in them, these are listed in
41+
In the :guilabel:`Outline View` on the main window you can see an outline of all the chapters,
42+
scenes, and sections of your project. If they have any references in them, these are listed in
4143
columns. You can also add a synopsis to each document, which can be listed here. You have the
4244
option to add or remove columns of information from the outline. A subset of the outline
43-
information is also available in the :guilabel:`Novel` tab under the main project tree.
45+
information is also available in the :guilabel:`Novel View` as a replacement for the main
46+
project tree.
4447

4548
**Building your manuscript**
4649
Whether you want to compile a manuscript, or export all your notes, or generate an outline of

docs/source/int_overview.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ language that doesn't require a compiler to build and run. That means that the c
1515
computer right out of the box, or from a zip file.
1616

1717
While it is developed for Linux primarily, it runs just fine on Windows as well. It also works fine
18-
on macOS, but the author is not a mac user so less attention is paid to that platform.
18+
on macOS, but the author is not a mac user, so less attention is paid to that platform.
1919

2020
In order to run novelWriter, you also need a few additional packages. The user interface is built
2121
with `Qt 5 <https://www.qt.io/>`_, a cross platform library for building graphical user interface
@@ -86,5 +86,5 @@ meta data for it to extract.
8686
them for tags you've set so that it knows which file to open when you click on a reference.
8787

8888
:ref:`a_export` - Recommended Reading
89-
This section explains in more detail how the export tool works. In particular how you can
89+
This section explains in more detail how the build tool works. In particular how you can
9090
control the way chapter titles are formatted, and how scene and section breaks are handled.

docs/source/int_source.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,19 @@ needed package is called `qttools5-dev-tools`.
110110
the ``i18n`` folder of the source code.
111111

112112

113+
.. _a_source_sample:
114+
115+
Building the Example Project
116+
============================
117+
118+
In order to be able to create new projects from example files, you need a ``sample.zip`` file in
119+
the ``assets`` folder of the source. This file can be built from setup script by running:
120+
121+
.. code-block:: bash
122+
123+
python setup.py sample
124+
125+
113126
.. _a_source_docs:
114127

115128
Building the Documentation

docs/source/int_started.rst

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Getting Started
1515
.. _python.org: https://www.python.org/downloads/windows
1616
.. _Releases: https://github.com/vkbo/novelWriter/releases
1717
.. _RPM: https://github.com/vkbo/novelWriter/issues/907
18+
.. _AppImage: https://appimage.org/
1819

1920
If you are using Windows or a Debian-based Linux distribtuion, you can install novelWriter from
2021
package installers. If you are on macOS, you have the option to run novelWriter from a standalone
@@ -46,19 +47,19 @@ If you have any issues, try uninstalling the previous version and making a fresh
4647
already had a version installed via a different method, you should uninstall that first.
4748

4849

49-
.. _a_started_debian:
50+
.. _a_started_linux:
5051

51-
Install on Debian/Ubuntu/Mint
52-
=============================
52+
Install on Linux
53+
================
5354

5455
A Debian package can be downloaded from the `main website`_, or from the Releases_ page on GitHub.
5556
This package should work on both Debian, Ubuntu and Linux Mint.
5657

5758
If you prefer, you can also add the novelWriter repository on Launchpad to your package manager.
5859

5960

60-
Ubuntu and Mint
61-
---------------
61+
Ubuntu
62+
------
6263

6364
You can add the Ubuntu PPA_ and install novelWriter with the following commands.
6465

@@ -71,11 +72,11 @@ You can add the Ubuntu PPA_ and install novelWriter with the following commands.
7172
If you want pre-releases, add the ``ppa:vkbo/novelwriter-pre`` repository instead.
7273

7374

74-
Debian
75-
------
75+
Debian and Mint
76+
---------------
7677

77-
Since this is a pure Python package, the Launchpad PPA can in principle also be used on Debian.
78-
However, the above command will fail to add the signing key.
78+
Since this is a pure Python package, the Launchpad PPA can in principle also be used on Debian or
79+
Mint. However, the above command will fail to add the signing key.
7980

8081
Instead, run the following commands to add the repository and key:
8182

@@ -97,6 +98,14 @@ Then run the update and install commands as for Ubuntu:
9798
different compression algorithm that Debian doesn't currently support.
9899

99100

101+
Other Distros
102+
-------------
103+
104+
For other Linux distros than the ones mentioned above, the primary option is AppImage_. These are
105+
completely standalone images for the app that include the necessary environment to run novelWriter.
106+
They can be run on any Linux distro.
107+
108+
100109
.. _a_started_minimal:
101110

102111
Minimal Package Install

docs/source/project_export.rst

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
.. _a_export:
22

3-
******************
4-
Exporting Projects
5-
******************
3+
***********************
4+
Building the Manuscript
5+
***********************
66

7-
The novelWriter project can be exported in various formats using the build tool available from
8-
:guilabel:`Build Novel Project` in the :guilabel:`Tools` menu, or by pressing :kbd:`F5`.
7+
You can at any time build a manuscript, an outline of your notes, or any other type of document
8+
from the text in your project. All of this is handled by the :guilabel:`Build Novel Project` tool.
9+
You can activate it from the sidebar, the :guilabel:`Tools` menu, or by pressing :kbd:`F5`.
910

1011

1112
.. _a_export_headers:
@@ -66,7 +67,7 @@ Scene Separators
6667

6768
If you don't want any titles for your scenes (or for your sections if you have them), you can leave
6869
the formatting boxes empty. If so, an empty paragraph will be inserted between the scenes or
69-
sections instead resulting in a gap in the text.
70+
sections instead, resulting in a gap in the text.
7071

7172
Alternatively, if you want a separator between them, like the common ``* * *``, you can enter the
7273
desired separator text in the formatting box. In fact, if the format is a piece of static text, it
@@ -78,25 +79,19 @@ will always be treated as a separator.
7879
File Selection
7980
==============
8081

81-
Which documents and notes are selected for export can be controlled from the options on the left
82-
side of the dialog window. The switch for :guilabel:`Include novel files` will enable or disable
83-
inclusion of novel documents, and the switch for :guilabel:`Include note files` will do the same
84-
for project notes. This allows for exporting just the novel, just your notes, or both, as you wish.
85-
86-
In addition, you can select to export the synopsis comments, regular comments, keywords, and even
87-
exclude the body text itself.
82+
Which documents and notes are selected for the build can be controlled from the options on the left
83+
side of the dialog window. In addition, you can select to include the synopsis comments, regular
84+
comments, keywords, and even exclude the body text itself if you just want an outline.
8885

8986
.. tip::
9087
If you for instance want to export a document with an outline of the novel, you can enable
9188
keywords and synopsis export and disable body text, thus getting a document with each heading
9289
followed by the tags and references and the synopsis.
9390

9491
If you need to exclude specific documents from your exports, like draft documents or documents you
95-
want to take out of your manuscript, but don't want to delete, you can un-check the
96-
:guilabel:`Include when building project` option for each such document in the project tree. An
97-
included document has a checkmark after in the third column of the project tree. The
98-
:guilabel:`Build Novel Project` tool has a switch to ignore this flag if you need to collectively
99-
override these settings.
92+
want to take out of your manuscript, but don't want to delete, you can set the documents as
93+
"inactive" in the project tree. :guilabel:`Build Novel Project` tool has a switch to collectively
94+
exclude inactive documents.
10095

10196

10297
.. _a_export_print:
@@ -108,23 +103,27 @@ The print button allows you to print the content in the preview window. You can
108103
of your system's printers, or print directly to a file as PDF. You can also print to file from the
109104
regular print dialog. The direct to file option is just a shortcut.
110105

106+
.. note::
107+
The paper format should in all cases default to whatever your system default is. Of you want to
108+
change it, you have to select it from the :guilabel:`Print Preview`` dialog.
109+
111110

112111
.. _a_export_formats:
113112

114113
Export Formats
115114
==============
116115

117-
Currently, six formats are supported for exporting.
116+
Currently, six formats are supported.
118117

119118
Open Document Format
120119
The Build tool can produce either an ``.odt`` file, or an ``.fodt`` file. The latter is just a
121120
flat version of the document format as a single XML file. Most rich text editors support the
122121
former, and a few the latter.
123122

124123
novelWriter HTML
125-
The HTML export format writes a single ``.htm`` file with minimal style formatting. The exported
126-
HTML document is suitable for further processing by document conversion tools like Pandoc, for
127-
importing in word processors, or for printing from browser.
124+
The HTML format writes a single ``.htm`` file with minimal style formatting. The HTML document
125+
is suitable for further processing by document conversion tools like Pandoc, for importing in
126+
word processors, or for printing from browser.
128127

129128
novelWriter Markdown
130129
This is simply a concatenation of the project documents selected by the filters. The documents
@@ -133,23 +132,23 @@ novelWriter Markdown
133132
import back into novelWriter.
134133

135134
Standard/GitHub Markdown
136-
The Markdown export format comes in both Standard and GitHub flavour. The *only* difference in
137-
terms of novelWriter functionality is the support for strikethrough text, which is not supported
138-
by the Standard flavour, but *is* supported by the GitHub flavour.
135+
The Markdown format comes in both Standard and GitHub flavour. The *only* difference in terms of
136+
novelWriter functionality is the support for strikethrough text, which is not supported by the
137+
Standard flavour, but *is* supported by the GitHub flavour.
139138

140139

141140
.. _a_export_options:
142141

143-
Additional Export Options
144-
=========================
142+
Additional Formats
143+
==================
145144

146145
In addition to the above document formats, the novelWriter HTML and Markdown formats can also be
147146
wrapped in a JSON file. These files will have a meta data entry and a body entry. For HTML, also
148-
the accompanying css styles are exported.
147+
the accompanying css styles are included.
149148

150-
The text body is saved in a two-level list. The outer list contains one entry per exported
151-
document, in the order they appear in the project tree. Each document is then split up into a list
152-
as well, with one entry per paragraph it contains.
149+
The text body is saved in a two-level list. The outer list contains one entry per document, in the
150+
order they appear in the project tree. Each document is then split up into a list as well, with one
151+
entry per paragraph it contains.
153152

154153
These files are mainly intended for scripted post-processing for those who want that option. A JSON
155154
file can be imported directly into a Python dict object or a PHP array, to mentions a few options.

docs/source/project_notes.rst

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ Tags in Notes
2525

2626
Each new heading in a note can have a tag associated with it. The format of a tag is
2727
``@tag: tagname``, where tagname is a unique identifier. Tags can then be referenced in the novel
28-
documents, or cross-referenced in other notes, and will show up in the outline view and in the
29-
back-reference panel when a document is being viewed. See :ref:`a_struct_tags` for how to reference
30-
notes.
28+
documents, or cross-referenced in other notes, and will show up in the Outline View and in the
29+
back-reference panel when a document is opened in the viewer. See :ref:`a_struct_tags` for how to
30+
reference notes.
3131

3232
The syntax highlighter will alert the user that the keyword is correctly used and that the tag is
3333
allowed, that is, the tag is unique. Duplicate tags should be detected as long as the index is up
@@ -36,15 +36,37 @@ colour that valid tags do.
3636

3737
The tag is the only part of these notes that the application uses. The rest of the document content
3838
is there for the writer to use in whatever way they wish. Of course, the content of the documents
39-
can be exported if you want to compile a single document of all your notes, or include them in an
40-
outline.
39+
can be added to the manuscript, or an outline document. If you want to compile a single document of
40+
all your notes, you can do this from the :guilabel:`Build Novel Project` tool.
4141

4242
A note can also reference other notes in the same way novel documents do. When the note is opened
4343
in the view panel, the references become clickable links, making it easier to follow connections in
44-
the plot. Notes don't show up in the outline view though, so referencing between notes is only
45-
meaningful if you want to be able to click-navigate between them.
44+
the plot. Notes don't show up in the Outline View though, so referencing between notes is only
45+
meaningful if you want to be able to click-navigate between them, or of course if you just want to
46+
highlight that two notes are related.
4647

4748
.. tip::
4849
If you cross-reference between notes and export your project as an HTML document using the
4950
:guilabel:`Build Novel Project` tool, the cross-references become clickable links in the
5051
exported HTML document.
52+
53+
Example of a project note with two headers, with separate tags, and with references to other notes:
54+
55+
.. code-block:: none
56+
:linenos:
57+
58+
# Main Characters
59+
60+
## Jane Doe
61+
62+
@tag: Jane
63+
@location: Earth
64+
65+
Something about Jane ...
66+
67+
## John Doh
68+
69+
@tag: John
70+
@location: Mars
71+
72+
Something about John ...

0 commit comments

Comments
 (0)