Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spelling errors #1389

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 37 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,72 +7,69 @@

## NeXus definition developers

After making a change to the NeXus class definitions there are two important checks
to be made before commiting the change:
After making a change to the NeXus class definitions, there are two essential checks
to be made before committing the change:

1. check whether the change does not violate any syntax rules
2. verify whether the change looks as intended in the HTML documentation
1. Check whether the change does not violate any syntax rules
2. Verify whether the change looks as intended in the HTML documentation

First install the test and build requirements with this command (only run once)
First, install the test and build requirements with this command (only run once)

make install

Then verify syntax and build the HTML manual with this command

make local

Open the HTML manual in a web brower for visual verification
Open the HTML manual in a web browser for visual verification

firefox build/manual/build/html/index.html

### HTML pages with contributor information

To build the html pages that contains contributor information on the sidebar set a github access token to an environment variable called GH_TOKEN.
To build the HTML pages that contain contributor information on the sidebar, set a GitHub access token to an environment variable called GH_TOKEN.

Note: If set this will increase the build time of the documentation by approximately a factor of 4.
Note: If set, this will increase the build time of the documentation by approximately a factor of 4.

setenv GH_TOKEN <access token>

### Working with nyaml files
### Working with `nyaml` files

There exists a simplified format of nxdl, which is called nyaml.
There is a [tool](https://github.com/FAIRmat-NFDI/nyaml) (`nyaml2nxdl`) available to convert between nxdl and nyaml.
This tool is already installed when you installed the requirements for this repository and it is conveniently available from the make command.
A simplified format of `nxdl` is called `nyaml`.
A [tool](https://github.com/FAIRmat-NFDI/nyaml) (`nyaml2nxdl`) is available to convert between `nxdl` and `nyaml`.
The tool was already installed when you installed the requirements for this repository, and it is conveniently available from the `make` command.

You can build nyaml files for all nxdl files with invoking
You can build `nyaml` files for all `nxdl` files with invoking:

make nyaml

which will created `.yaml` files in a subfolder called `nyaml` in the respective directory.

From this you can do your changes and create nxdl files with
which will create `.yaml` files in a subfolder called `nyaml` in the respective directory. From this, you can make your changes and create `nxdl` files with

make nxdl

from the yaml files.
from the `.yaml` files.

## Repository content

These are the components that define the structure of NeXus data files
in the development directory.

component | description
-------------------------------|------------------------
[CHANGES.rst](CHANGES.rst) | Change History
[LGPL.txt](LGPL.txt) | one proposed license model
[NXDL_VERSION](NXDL_VERSION) | the current NXDL version number
[README.md](README.md) | this file
applications/ | NXDL files for applications and instrument defs
base_classes/ | NXDL files for components
contributed_definitions/ | NXDL files from the community
impatient-guide/ | *NeXus for the Impatient*
jenkins_build | configuration for Jenkins continuous integration service
legacy_docs/ | legacy PDF copies of the NeXus definitions documentation
manual/ | Sphinx source files for the NeXus documentation
[nxdl.xsd](nxdl.xsd) | XML Schema for NXDL files
[nxdlTypes.xsd](nxdlTypes.xsd) | called by nxdl.xsd
package/ | directory for packaging this content
utils/ | various tools used in the definitions tree
www/ | launch (home) page of NeXus WWW site
xslt/ | various XML stylesheet transformations
dev_tools/ | developer tools for testing and building
These components define the structure of NeXus data files in the development directory.

| Component | Description |
| ------------------------------ | -------------------------------------------------------- |
| [CHANGES.rst](CHANGES.rst) | Change History |
| [LGPL.txt](LGPL.txt) | one proposed license model |
| [NXDL_VERSION](NXDL_VERSION) | the current NXDL version number |
| [README.md](README.md) | this file |
| applications/ | NXDL files for applications and instrument defs |
| base_classes/ | NXDL files for components |
| contributed_definitions/ | NXDL files from the community |
| impatient-guide/ | *NeXus for the Impatient* |
| jenkins_build | configuration for Jenkins continuous integration service |
| legacy_docs/ | legacy PDF copies of the NeXus definitions documentation |
| manual/ | Sphinx source files for the NeXus documentation |
| [nxdl.xsd](nxdl.xsd) | XML Schema for NXDL files |
| [nxdlTypes.xsd](nxdlTypes.xsd) | called by nxdl.xsd |
| package/ | directory for packaging this content |
| utils/ | various tools used in the definitions tree |
| www/ | launch (home) page of NeXus WWW site |
| xslt/ | various XML stylesheet transformations |
| dev_tools/ | developer tools for testing and building |