Skip to content

Commit 3371f3a

Browse files
committed
Fixes per Jeff and Chris
1 parent 5b3cc42 commit 3371f3a

File tree

1 file changed

+5
-28
lines changed

1 file changed

+5
-28
lines changed

source/style-guide/style/version.txt

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. _version-numbers:
22

3-
==================
3+
===============
44
Version Numbers
5-
==================
5+
===============
66

77
.. default-domain:: mongodb
88

@@ -18,7 +18,8 @@ Version Numbers
1818

1919
Versions are unique names assigned to product releases that are packaged
2020
with a set of features at a specific point in time.
21-
MongoDB products follow semantic versioning (link to wikipedia).
21+
MongoDB products follow `semantic versioning
22+
<https://en.wikipedia.org/w/index.php?title=Software_versioning&oldid=1147438049>`__
2223
Use version numbers or names to refer to a particular release of a product,
2324
such as identifying when a new feature was introduced or removed.
2425

@@ -92,7 +93,7 @@ You can find references to EOL releases of MonogDB using grep:
9293

9394
.. code-block:: shell
9495

95-
$ grep -RI \
96+
$ grep -nRI \
9697
-e ".. versionadded:: [0-9]" \
9798
-e ".. versionchanged:: [0-9]" \
9899
-e ".. deprecated:: [0-9]" \
@@ -112,29 +113,5 @@ You can find references to EOL releases of MonogDB using grep:
112113
source/sharding.txt:379:Starting in MongoDB 3.6, :doc:`change streams </changeStreams>` are
113114
...
114115

115-
116-
This command could be added to a script and adjusted to work from an
117-
arbitrary directory:
118-
119-
.. code-block:: bash
120-
121-
grep -RIne ".. versionadded:: [0-9]" -e ".. versionchanged:: [0-9]" \
122-
-e ".. deprecated:: [0-9]" -e "MongoDB [0-9]" $1 | \
123-
grep -v "6\.2" | \
124-
grep -v "6\.1" | \
125-
grep -v "6\.0" | \
126-
grep -v "5\.3" | \
127-
grep -v "5\.1" | \
128-
grep -v "5\.0" | \
129-
grep -v "4\.4" | \
130-
grep -v "4\.2" | \
131-
grep -v "source/release-notes"
132-
133-
To execute the script, call it with a path argument:
134-
135-
.. code-block:: shell
136-
137-
$ ./version.sh source
138-
139116
Whenever a release goes EOL, remove the relevant ``grep -v`` line to ensure that
140117
its version references begin to appear in the results.

0 commit comments

Comments
 (0)