Skip to content

Commit f13599b

Browse files
committed
doc: fix some typos found with codespell
The codespell [1] tool is very convenient to help spotting typos in documentation files. It helps me a lot everyday thus I thought it may be of interest for the Lmod project. Here I have applied codespell on the "docs" directory and fixes the typos it found. [1] https://github.com/codespell-project/codespell
1 parent c02349c commit f13599b

16 files changed

+22
-22
lines changed

docs/source/030_installing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Using Your Package Manager for Ubuntu or Debian systems
117117
For modern debian and debian derivatives, you can get the necessary
118118
dependencies by executing the following commands. Note that for this
119119
to work you may need to repair your /etc/apt/sources.list. Check to
120-
see if your sources.list file as uncommmented "deb-src" lines. Once
120+
see if your sources.list file as uncommented "deb-src" lines. Once
121121
this is correct, please execute the following lines::
122122

123123
$ sudo apt update

docs/source/040_FAQ.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ scripts such as job submission scripts?
277277
Why do modules sometimes get loaded when I execute ``module use <path>``?
278278

279279
A main principal is that when $MODULEPATH changes, Lmod checks all
280-
the currently loaded modules. If any of thoses modules would not
280+
the currently loaded modules. If any of those modules would not
281281
have been chosen then each is swapped for the new choice.
282282

283283
How to use module commands inside a Makefile?
@@ -322,7 +322,7 @@ What to do if new modules are missing when doing ``module avail``?
322322
How to edit a modulefile?
323323

324324
Lmod does not provide a way to directly edit modulefiles.
325-
Typically modulefiles are owned by the system so cannot be editted
325+
Typically modulefiles are owned by the system so cannot be edited
326326
by users. However, Lmod does provide a convenient way to locate
327327
modules which could be used for a bash/zsh shell function::
328328

docs/source/050_lua_modulefiles.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ The entries below describe several useful commands that come with Lmod that can
250250
**mode** ():
251251
Returns the string "load" when a modulefile is being loaded,
252252
"unload" when unloading, and "spider" when a modulefile is
253-
processed builting the spider cache which is used by *module
253+
processed building the spider cache which is used by *module
254254
avail* and *module spider*.
255255

256256
**isloaded** ("NAME"):

docs/source/052_Environment_Variables.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Environment variables defined by Lmod startup files
88
**LMOD_CMD** : The path to the installed lmod command.
99

1010
**LMOD_DIR** : The directory that contains the installed lmod
11-
command. This environment variable is usefull for running the
11+
command. This environment variable is useful for running the
1212
**spider** command: i.e. $LMOD_DIR/spider. This is the libexec directory
1313

1414
**LMOD_PKG** : This the path the directory that contains the libexec,

docs/source/055_module_names.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ fullName == sn/version
4545

4646
The fullName of a modulefile is complete name which is made of two
4747
parts: sn and version. The sn is the shortname and represents the
48-
minumum name that can be used to specify a module. So for the
48+
minimum name that can be used to specify a module. So for the
4949
``gcc/7.1`` modulefile. The fullName is ``gcc/7.1`` and the sn is
5050
``gcc`` and the version is ``7.1``. This naming convention is known
5151
as NAME/VERSION and is abbreviated N/V. There are two more complicated
@@ -83,7 +83,7 @@ packages be named: ``bio/bowtie/3.4`` or ``bio/tophat/2.7``. When the
8383
fullName is ``bio/bowtie/3.4`` then the sn for is ``bio/bowtie`` and the
8484
version is ``3.4``.
8585

86-
Sites should think carefully about chosing to using C/N/V. This can
86+
Sites should think carefully about choosing to using C/N/V. This can
8787
make it easier for users to know which modules provide say physics,
8888
chemistry or biology applications but it does lead to great deal more
8989
typing of which tab completion provided by the bash or zsh shells can
@@ -117,7 +117,7 @@ Sites can mix N/V and C/N/V layouts, Lmod will be able to decide the
117117
sn and versions by walking directory tree. In general, the fullName,
118118
will be divided into directories names to become the sn and the
119119
version will be the file. So for the fullName ``bio/tophat/7.2`` the
120-
directores bio and tophat become the sn, ``bio/tophat`` and the
120+
directories bio and tophat become the sn, ``bio/tophat`` and the
121121
version is ``7.2``.
122122

123123
Lmod supports as many directory levels as site likes. For example, a

docs/source/110_lmod_mpi_parallel_filesystem.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ this timeout problem for mpi programs that execute more than 1000
1313
nodes, but when this problem occurs will depend on relative speeds of
1414
the network and the parallel filesystem.
1515

16-
It is helpful to outline the proceedure that we use at TACC to start a
16+
It is helpful to outline the procedure that we use at TACC to start a
1717
job on a compute node for a user
1818

1919
#. The bash user submits a job to the scheduler.
@@ -86,7 +86,7 @@ submission script::
8686
#SBATCH ...
8787

8888
module load intel mvapich2
89-
ibrun ./my_mpi_program # start parallel executation.
89+
ibrun ./my_mpi_program # start parallel execution.
9090

9191
Note that the total environment is passed by our parallel job starter
9292
ibrun. So there is no need for a user's ~/bashrc or similar file to

docs/source/120_shared_home_directories.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ across their cluster. If a site has more than one cluster, they may
99
chose to have a separate home directory for each cluster. Some sites
1010
may wish to have multiple clusters share a single home directory.
1111
While this strategy has some advantages, it complicates things for
12-
your users and adminstrators. If your site has a single home
12+
your users and administrators. If your site has a single home
1313
directory sharing between two or more clusters, you have a shared
1414
home file system.
1515

docs/source/135_module_spider.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ hdf5 module and not the phdf5 module. It does report that other
104104
matches are possible (such as phdf5). The reason for this is some
105105
sites name the R stat package as R. This rule is to prevent getting
106106
every module that has an 'r' in it. Note that the searching for
107-
modules is case insensitve. So *module spider openmpi* would match a
107+
modules is case insensitive. So *module spider openmpi* would match a
108108
module named *OpenMPI*.
109109

110110
If you search a name that only partially matches a module name then

docs/source/145_properties.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ then Lmod searches for the property information in the following order:
3636
#. $LMOD_RC
3737

3838
Where $LMOD_RC is an environment variable that can be set to point to
39-
any file locaiton. If there are more than one of these files exist
39+
any file location. If there are more than one of these files exist
4040
then they are merged and not a replacement. So a site can (and
4141
should) leave the first file as is and create another one to specify
4242
site properties and Lmod will merge the information into one.

docs/source/260_sh_to_modulefile.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Using **source_sh** ()
6565
^^^^^^^^^^^^^^^^^^^^^^
6666
The feature of sourcing shell scripts inside a modulefile was
6767
introduced in Tmod 4.6+. It has be shamelessly studied and
68-
re-implemented in Lmod 8.6+. In Lmod, this feature re-uses much of the
68+
re-implemented in Lmod 8.6+. In Lmod, this feature reuses much of the
6969
code that implements **sh_to_modulefile**. This code does the
7070
following when performing a module load.
7171

docs/source/300_tracking_module_usage.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ d) Create the database by running the createDB.py program.::
252252

253253
$ ./createDB.py
254254

255-
Note that createDB.py support --drop to remove the old databae.
255+
Note that createDB.py support --drop to remove the old database.
256256

257257

258258
Step 7

docs/source/301_converting_to_gen2.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ tracking database. There are several reasons for this change:
1515
load. It is now possible to block storing these modules.
1616

1717
3. In studying our data, it became clear that many users were
18-
loading the same modules repeatly during a day. We have only
18+
loading the same modules repeatedly during a day. We have only
1919
been interested in distinct users use of modules. Not how many
2020
times a user loaded a particular module. So by default the
2121
`store_module_data` program only records the first use of a

docs/source/310_settarg.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ settarg changes your path to include $TARG by removing the old value
112112
of $TARG and replacing it with the new value of $TARG. This way you
113113
can set $TARG, build, then run the new executable.
114114

115-
Settarg integration witn prompt commands
115+
Settarg integration with prompt commands
116116
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
117117

118-
Tbe bash shell support an environment variable called "PROMPT_COMMAND".
118+
The bash shell support an environment variable called "PROMPT_COMMAND".
119119
If this variable is set to the name of a shell function, then for each
120120
new shell prompt, this command is run. Similarly, zsh will run the
121121
"precmd" on every new prompt. By default the settarg module defines a

docs/source/320_improving_perf.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ improve the loading of modules by doing the following steps:
1313

1414
#. Configure Lmod to use LMOD_CACHED_LOADS=yes
1515

16-
Theses are the most important steps. As long as your site keeps the
16+
These are the most important steps. As long as your site keeps the
1717
cache file up-to-day, the above steps will improve performance the
1818
most.
1919

docs/source/340_inherit.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ A Personal Hierarchy Mirroring the System Hierarchy
77
Suppose you as a user wants to have personal modules that work as part
88
of the software hierarchy. You might want to do that if you are a
99
library or parallel application developer. You might want to test
10-
libraries or parallel applications before making them publically
10+
libraries or parallel applications before making them publicly
1111
available. These are two possible of many that you might want to
1212
mirror the software hierarchy. So how to go about it.
1313

1414
The simplest to understand (but not implement) is to just copy over
15-
the entire compiler-mpi tree to your account and then tweek the
15+
the entire compiler-mpi tree to your account and then tweak the
1616
compiler and mpi modules to point inside your directory. Once you
1717
have done that, you can add the modules that you need.
1818

docs/source/410_Lmod_principals.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ A discussion on the design of Lmod:
137137
one structure called LocationT
138138
139139
* Go to spec/*/*_spec.lua to see an example of what the structure looks
140-
like. For exmaple spec/DirTree/DirTree_spec.lua for what dirT looks
140+
like. For example spec/DirTree/DirTree_spec.lua for what dirT looks
141141
like and spec/ModuleA/ModuleA_spec.lua
142142
143143
* When a module is loaded. All is known is the userName. That is the

0 commit comments

Comments
 (0)