Skip to content

Commit 19c94d4

Browse files
authored
Merge branch 'main' into mjang-hard-code
2 parents 8c655bf + 4f116f7 commit 19c94d4

File tree

3 files changed

+12
-17
lines changed

3 files changed

+12
-17
lines changed

source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
edit_on_github_project = 'nginx/unit-docs'
3535
edit_on_github_discussion = 'nginx/unit'
36-
edit_on_github_branch = 'master'
36+
edit_on_github_branch = 'main'
3737

3838
exclude_patterns = ['include']
3939
suppress_warnings = ['misc.highlighting_failure']

source/exts/github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ def setup(app):
4444
"""Connects the extension to the app."""
4545

4646
app.add_config_value("edit_on_github_project", "", True)
47-
app.add_config_value("edit_on_github_branch", "master", True)
47+
app.add_config_value("edit_on_github_branch", "main", True)
4848

4949
app.connect("html-page-context", html_page_context)

source/howto/source.rst

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -115,29 +115,24 @@ revision numbers, respectively); omit the packages you won't use.
115115
:hash: source-njs
116116

117117
To build Unit with `njs <https://nginx.org/en/docs/njs/>`__ support,
118-
download the :program:`njs` code
119-
to the same parent directory
118+
download the :program:`njs` code to the same parent directory
120119
as the Unit code.
121120

122-
If you'd like to use `Mercurial <https://www.mercurial-scm.org/downloads>`_:
121+
**0.8.2** is the latest version of :program:`njs` that Unit supports.
122+
Make sure you are in the correct branch before configuring the binaries.
123123

124124
.. code-block:: console
125125
126-
$ cd ..
127-
$ hg clone https://hg.nginx.org/njs
128-
129-
If you prefer `Git <https://git-scm.com/downloads>`_:
130-
131-
.. code-block:: console
132-
133-
$ cd ..
134-
$ git clone https://github.com/nginx/njs
126+
$ git clone https://github.com/nginx/njs.git
127+
$ cd njs
128+
$ git checkout -b 0.8.2 0.8.2
135129
136-
Next, configure and build the :program:`njs` binaries:
130+
Next, configure and build the :program:`njs` binaries. Make sure to use the
131+
`--no-zlib` and `--no-libxml2` options to avoid
132+
conflicts with Unit's dependencies:
137133

138134
.. code-block:: console
139135
140-
$ cd njs
141136
$ ./configure :nxt_hint:`--no-zlib --no-libxml2 <Ensures Unit can link against the resulting library>` && make
142137
143138
Point to the resulting source and build directories when :ref:`configuring
@@ -166,7 +161,7 @@ revision numbers, respectively); omit the packages you won't use.
166161
.. warning::
167162
The **unit-wasm** module is deprecated.
168163
We recommend using **wasm-wasi-component** instead,
169-
available in Unit 1.32.0 and later, which supports
164+
available in Unit 1.32.0 and later, which supports
170165
WebAssembly Components using standard WASI 0.2 interfaces.
171166

172167
To build Unit with the `WebAssembly <https://webassembly.org>`__

0 commit comments

Comments
 (0)