Skip to content

Commit afa9675

Browse files
committed
Merge branch 'patch' into release_2.0.6
2 parents 916f782 + a7ba0ec commit afa9675

File tree

9 files changed

+318
-147
lines changed

9 files changed

+318
-147
lines changed

docs/FileFormatSpec-1.5.fodt

Lines changed: 157 additions & 138 deletions
Large diffs are not rendered by default.

docs/source/_static/custom.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
body article section {
2+
margin-top: 1.8em;
3+
}

docs/source/conf.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#
22
# Configuration file for the Sphinx documentation builder.
3-
#
4-
# This file does only contain a selection of the most common options. For a
5-
# full list see the documentation:
6-
# http://www.sphinx-doc.org/en/master/config
3+
# Documentation: http://www.sphinx-doc.org/en/master/config
74
#
85

96
# -- Imports -----------------------------------------------------------------
@@ -38,24 +35,33 @@
3835
time.tzset()
3936

4037
needs_sphinx = "4.0"
38+
extensions = []
4139
templates_path = ["_templates"]
4240
source_suffix = ".rst"
4341
master_doc = "index"
4442
today_fmt = "%A, %d %B %Y at %H:%M"
4543
language = "en"
4644
exclude_patterns = []
47-
pygments_style = "sphinx"
48-
pygments_dark_style = "monokai"
4945

5046
# -- Options for HTML Output -------------------------------------------------
5147

5248
html_theme = "furo"
5349
html_static_path = ["_static"]
50+
html_css_files = ["custom.css"]
5451
html_theme_options = {
5552
"light_logo": "novelwriter-light.png",
5653
"dark_logo": "novelwriter-dark.png",
54+
"navigation_with_keys": True,
55+
"dark_css_variables": {
56+
"admonition-font-size": "92%",
57+
},
58+
"light_css_variables": {
59+
"admonition-font-size": "92%",
60+
},
5761
}
5862
html_title = f"<div style='text-align: center'>Documentation Version {release}</div>"
63+
pygments_style = "tango"
64+
pygments_dark_style = "native"
5965

6066
# -- Options for HTMLHelp Output ---------------------------------------------
6167

Binary file not shown.

docs/source/index.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ as well. novelWriter can also be run directly from the Python source, or install
3131
the pip tool. See :ref:`a_started` for more details.
3232

3333
.. note::
34-
Version 1.5 introduced a few changes that will require you to make some minor modifications to
34+
Version 1.3 introduced a few changes that will require you to make some minor modifications to
3535
some of the headings in your project. It should be fairly quick and straightforward. Please see
3636
the :ref:`a_prjfmt_1_3` section for more details.
3737

@@ -47,6 +47,11 @@ the pip tool. See :ref:`a_started` for more details.
4747
* PyPi Project: https://pypi.org/project/novelWriter
4848
* Social Media: https://fosstodon.org/@novelwriter
4949

50+
.. toctree::
51+
:hidden:
52+
53+
Main Page <self>
54+
5055
.. toctree::
5156
:maxdepth: 1
5257
:caption: Introduction
@@ -56,6 +61,7 @@ the pip tool. See :ref:`a_started` for more details.
5661
int_overview
5762
int_started
5863
int_source
64+
int_howto
5965
int_customise
6066

6167
.. toctree::

docs/source/int_howto.rst

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
.. _a_howto:
2+
3+
*************
4+
Tips & Tricks
5+
*************
6+
7+
.. _Discussions Page: https://github.com/vkbo/novelWriter/discussions
8+
9+
This is a list of hopefully helpful little tips on how to get the most out of novelWriter.
10+
11+
.. note::
12+
13+
This section will be expanded over time, and if you would like to have something added, feel
14+
free to contribute, or start a discussion on the project's `Discussions Page`_
15+
16+
17+
Overview
18+
========
19+
20+
**Managing the Project**
21+
22+
* :ref:`a_howto_merge_documents`
23+
24+
**Layout Tricks**
25+
26+
* :ref:`a_howto_simple_table`
27+
28+
**Organising Your Text**
29+
30+
* :ref:`a_howto_chapter_intro`
31+
* :ref:`a_howto_soft_hard_breaks`
32+
33+
**Other Tools**
34+
35+
* :ref:`a_howto_convert_ywriter`
36+
37+
38+
How-Tos
39+
=======
40+
41+
42+
Managing the Project
43+
--------------------
44+
45+
46+
.. _a_howto_merge_documents:
47+
48+
Merge Multiple Documents Into One
49+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50+
51+
If you need to merge a set of documents in your project into a single document, you can achieve
52+
this by first making a new folder for just that purpose, and drag all the files you want merged
53+
into this folder. Then you can right click the folder, select :guilabel:`Transform` and
54+
:guilabel:`Merge Documents in FOlder`.
55+
56+
In the dialog that pops up, the documents will be in the same order as in the folder, but you can
57+
also rearrange them here of you wish.
58+
59+
60+
Layout Tricks
61+
-------------
62+
63+
64+
.. _a_howto_simple_table:
65+
66+
Create a Simple Table
67+
^^^^^^^^^^^^^^^^^^^^^
68+
69+
The formatting tools available in novelWriter don't allow for complex structures like tables.
70+
However, the editor does render tabs in a similar way to regular word processors. You can set the
71+
width of a tab in :guilabel:`Preferences`.
72+
73+
The tab key should have the same distance in the editor as in the viewer, so you can align text in
74+
columns using the tab key, and it should look the same when viewed next to the editor.
75+
76+
This is most suitable for your notes, as the result in exported documents cannot be guaranteed to
77+
match.
78+
79+
80+
Organising Your Text
81+
--------------------
82+
83+
84+
.. _a_howto_chapter_intro:
85+
86+
Add Introductory Text to Chapters
87+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
88+
89+
Sometimes chapters have a short preface, like a brief piece of text or a quote to set the stage
90+
before the first scene -- Some text that may not be a part of the actual following scene.
91+
92+
If you add separate files for chapters and scenes, this is the perfect place to add such text.
93+
Separating chapter and scene files also allows you to set meta data for the whole chapter. Like
94+
list all characters present in the chapter, etc.
95+
96+
97+
.. _a_howto_soft_hard_breaks:
98+
99+
Distinguishing Soft and Hard Scene Breaks
100+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
101+
102+
Depending on your writing style, you may need to separate between soft and hard scene breaks within
103+
chapters. Like for instance if you switch point-of-view character often.
104+
105+
In such cases you may want to use the scene heading for hard scene breaks and section headings for
106+
soft scene breaks. the :guilabel:`Project Build Tool` will let you add separate formatting for the
107+
two when you generate your manuscript. You can for instance add the common "``* * *``" for hard
108+
breaks and select to hide section breaks, which will just insert an empty paragraph in their place.
109+
110+
111+
Other Tools
112+
-----------
113+
114+
115+
.. _a_howto_convert_ywriter:
116+
117+
Convert Project to/from yWriter Format
118+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
119+
120+
.. _yWriter: http://spacejock.com/yWriter7.html
121+
122+
There is a tool available that lets you convert a yWriter_ project to a novelWriter project, and
123+
vice versa.
124+
125+
The tool is available at `peter88213.github.io/yw2nw <https://peter88213.github.io/yw2nw/>`__

docs/source/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
furo
22
sphinx>=4.0
33
pygments>=2.7
4-
docutils==0.17.1
4+
docutils>=0.17.1

docs/source/tech_storage.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
How Data is Stored
55
******************
66

7+
.. _documentation: https://novelwriter.readthedocs.io
8+
79
This section contains details of how novelWriter stores and handles the project data.
810

911

@@ -39,6 +41,15 @@ The project XML file is indent-formatted, and is suitable for diff tools and ver
3941
most of the file will stay static, although a timesetamp is set in the meta section on line 2, and
4042
various meta data entries incremented, on each save.
4143

44+
.. only:: not html
45+
46+
A full project file format specification is available in the online documentation_.
47+
48+
.. only:: html
49+
50+
A full description of the current file format is available in the
51+
:download:`File Format Spec 1.5 <fileformatspec15.pdf>` document, available as a PDF.
52+
4253

4354
Project Documents
4455
=================

docs/source/usage_projectformat.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ applicable.
2929

3030
**For Developers**
3131

32-
A full description of the current file format is available in the `File Format Spec 1.5`_
32+
A full description of the current file format is available in the
33+
:download:`File Format Spec 1.5 <fileformatspec15.pdf>`
3334
document, available as a PDF. This document is intended for contributors to novelWriter, those
3435
building project conversion tools, either to or from tne novelWriter format, and for those who
3536
wish to make their own templating system.

0 commit comments

Comments
 (0)