uid |
---|
contributing |
Welcome to the docs.dataminer.services contributor guide!
Our documentation is open to contributions from any user. Contributions are created, reviewed, and merged via GitHub. This page will explain how you can add and review contributions, ranging from simple changes to a single page, to larger changes where entire sections of the documentation are added or modified.
Tip
Are you a member of the DataMiner DevOps Professional Program? You can earn points by proposing changes or pointing out issues in the documentation! Find out how many DevOps Points you can earn.
-
Use US English spelling when you contribute to the DataMiner documentation.
-
Try to conform to the Microsoft Style Guide as much as possible.
-
Use DocFX Flavored Markdown (DFM). If you are unfamiliar with this syntax, refer to Markdown syntax below.
-
Do not make changes to the root folder of the repository, to the .github folder, or to the templates folder. As a rule, such changes will be rejected.
Tip
See also: Making a small contribution to DataMiner Docs on DataMiner Dojo
On every page of the documentation on docs.dataminer.services, a Propose changes link is available in the top-right corner. Clicking this link will open the source of the documentation on GitHub. You can then make changes as follows:
-
Make sure you are logged in to GitHub.
-
On the page you intend to edit in GitHub, click the pencil button in the top-right corner.
This will create a "fork" of the documentation, i.e. a copy where you can freely make changes.
-
Make your changes using the web editor. To get a preview of the changes, go to the Preview tab.
-
Once you have made your changes, click Commit changes in the top-right corner. This will open a pop-up window.
-
In the pop-up window, you can enter a title and description for your changes and click Propose changes. For example:
-
A page will be displayed with a summary of your changes. At the top of the page, click Create pull request. A “pull request” is a request to pull changes into the repository.
-
Double-check the title and description for the pull request, and modify them if necessary. We recommend that you select the option Allow edits by maintainers, so that the documentation team will be able to correct any small issues (e.g. typos) directly.
-
Click Create pull request.
The documentation team will review the request and merge it if it is approved. If changes are needed before it can be merged, you will receive feedback.
[!IMPORTANT] Do not forget to create a pull request! Otherwise, your changes may be lost.
GitHub offers the possibility to report an issue. This feature can be used if you think information is missing or notice a mistake but are unsure of how to change it using the web editor or GitHub Desktop. You can report an issue as follows:
-
Go to the dataminer-docs repository on GitHub.
-
In the top-left corner, select Issues.
-
Select New issue.
-
Choose a title for the issue and leave a comment.
-
Select Submit new issue.
The Skyline documentation team will review the issue and provide you with feedback.
Most contributions to the documentation are added in the form of "pull requests", i.e. requests to pull specific changes into the repository. The pull requests are listed under https://github.com/SkylineCommunications/dataminer-docs/pulls.
Until a pull request is merged, everyone can review it and add comments of their own. To do so:
-
Open the pull request, for instance by selecting it in the list of pull requests or by using a direct link to the pull request.
-
Go to the Files changed tab. This will show an overview of all the changes in the pull request.
-
Check the changes in each file. For larger modifications, you may need to click Load diff first.
-
To add a comment, hover the mouse pointer over the relevant line and click the blue "+" button.
-
Write your comment and click Add single comment or Start a review, depending on whether you want to add more comments or not.
-
If you started a review, when you have reviewed everything, click the Finish your review button at the top. Optionally, instead of the default Comment option, select Approve to indicate that you approve the changes in the pull request or Request changes to indicate that you think further changes are necessary before the pull request can be merged. Then click Submit review.
Note
You can also submit a review without adding comments directly in a file, by only clicking the green review button and using the window displayed above.
Tip
If the Markdown source looks confusing, and you would prefer to see a preview of a file, in the Files changed tab, click "..." in the top-right corner of the box representing the file, and select View file. However, note that it is not possible to submit comments in this preview.
Check with the Skyline documentation team before you use the procedure below. This way you can avoid unnecessary work, e.g. because the information you want to add is already available elsewhere in the documentation. If you are unsure of how to fit your information in the current structure of the documentation, or if you do not feel comfortable working in Markdown, you can always submit your contribution by emailing it to team.technical.writing@skyline.be instead.
Tip
See also:
- Getting started with your Documentation Tools on DataMiner Dojo
- Making a large contribution to DataMiner Docs on DataMiner Dojo
Note that these videos are less update-friendly than the instructions below.
For larger contributions, e.g. to add several new pages, we recommend that you install the following (free) software, in the indicated order:
-
[!NOTE]
- While it is also possible to use the tools below without Git, some features in Visual Studio Code, such as branch and repository information, will not be available.
- If you install Git, it is important that you do so before you install GitHub Desktop, as otherwise you may experience issues.
-
Visual Studio Code (with the Learn Authoring Pack extension)
Note
Microsoft also provides a zero-install Visual Studio Code for the web. When you are working in GitHub online, you can access this by pressing the "." button on your keyboard. This version offers a complete overview of the repository like in the downloadable version of Visual Studio Code, but it does not offer any extensions, e.g. a spell check.
When you install GitHub Desktop, you will also need to add the correct repository:
-
Install GitHub Desktop and log in with your GitHub account.
-
Select Clone a repository from the Internet.
-
Next, you will be asked which repository you want to use. Clone the SkylineCommunications/dataminer-docs repository to your local machine. The easiest way to do so is by specifying the URL
https://github.com/SkylineCommunications/dataminer-docs
in the URL tab.[!IMPORTANT]
- Make sure the local path you clone the repository to is relatively short. Using a long file path will lead to errors, as Windows will be unable to create certain files in the repository.
- Do not clone the repository to a folder that is synced with OneDrive, as this can cause errors.
-
If you do not have write access to the repository, you will find an alert in the lower left corner of the GitHub Desktop UI.
If this is the case:
Note
If you have already made a fork of the repository in the past, you can also immediately add this fork as the URL when you clone the repository (e.g. https://github.com/MyGitHubName/dataminer-docs
).
Tip
Creating a fork will allow you to make changes that you can then add to a pull request. If Visual Studio Code has been installed, you can click Open in Visual Studio Code to immediately start working on the fork. However, note that if you have other editors installed as well (e.g. Notepad++), this button might display a different editor. You can change this via the Options link in the box containing the button.
For more information on how to work with Visual Studio Code, refer to the Visual Studio Code documentation. As our documentation is written in Markdown, aside from the general functionality of the application, the Markdown section is of specific interest there.
Also keep in mind that we are using DocFX Flavored Markdown. Refer to the Markdown syntax section below for more information about this. Make sure the Learn Authoring Pack extension is installed in Visual Studio Code to make it easier to work with this Markdown flavor.
When you are working on your own fork, make sure you regularly check in GitHub whether your fork is still up to date with the main repository. To do so:
-
Go to https://github.com/SkylineCommunications/dataminer-docs.
-
In the About section on the right, click the link to the forks:
-
Look up your fork in the list, and click the link to go the page for your own fork.
-
Check the top of your fork page. If it says the branch is a number of commits behind SkylineCommunications:main, your fork is no longer up to date. If there is no such indication, there is no need to continue with this procedure.
-
To update your fork, click the triangle button next to Sync fork and select Update branch.
When you add a page to the documentation:
-
Make sure there is a UID at the top of your new file. Add this UID in a metadata section. For example:
--- uid: contributing ---
[!NOTE] Do not use spaces in a UID.
-
Add the new page to the relevant toc.yml file so that it is included in the table of contents. To do so, specify the name and UID as follows:
- name: The name of the page as it should appear in the table of contents topicUid: The file UID
For example:
- name: Basic concepts topicUid: BasicConcepts
To add the new page at a lower level in the table of contents, use the following syntax:
- name: The name of the page at the level above the page you are adding topicUid: The file UID items: - name: The name of the new page as it should appear in the table of contents - topicUid: The file UID of the new page
-
Check if there are any smaller content overviews that also need to be updated with a link. For example, if you add something in the user guide, usually there is a page at a higher level in the guide that gives an overview of all underlying pages. Add a link to your new page on that page.
To avoid adding duplicate information, use cross-references to refer to information that is already available in the documentation.
When you add a cross-reference to a different file, make sure that you always link to the file’s UID. While it is possible to link to the actual file instead, this should be avoided as such a link is broken when the file name or file structure changes. For more information, see Links and cross-references.
When your changes are ready, you can create a pull request to submit them for review:
-
Make sure you have saved your changes in Visual Studio Code. As long as a blue circle is displayed on top of the topmost icon in the sidebar on the left, there are still unsaved changes. The number in this circle indicates the number of files with unsaved changes.
-
Check the overview of your changes in GitHub Desktop.
-
If all changes are OK, fill in a title for the update in the Summary box in the lower right corner and click the Commit button.
-
In the central pane of GitHub Desktop, click Push origin.
-
Next click Create Pull Request. This will open GitHub in a browser.
[!NOTE] You can also select Preview Pull Request to get a complete overview of the changes you are about to commit and the base you are merging this to. If necessary, you can select a different base branch here as well. If all changes are OK, select Create pull request.
-
In the browser, make sure that the base you are merging to is the main branch. If a different base branch is selected, make sure to select the correct branch. Scroll down for another overview of the changes that will be included in the pull request.
-
Specify a title for the pull request, and optionally add a comment with more information about your changes.
[!NOTE] We recommend that you keep the option Allow edits by maintainers selected, so that the documentation team will be able to correct any small issues directly. Note that if you instead see the option Allow edits and access to secrets by maintainers, this means that the pull request includes workflows of your forked repository, which means you could potentially reveal values of secrets and grant access to other branches if you allow edits. If you do not want this, do not select this option.
-
Click Create pull request. Your pull request will now be submitted for review.
The documentation team will review the request and merge it if it is approved. If changes are needed before it can be merged, you will receive feedback.
[!NOTE] You can also create a draft pull request, for example if you still want to have someone else make changes before the pull request can be merged. In that case, click the triangle button next to Create pull request and select Create draft pull request.
When the pull request is ready to be merged, you can click Ready for review on the pull request page to change it from a draft into a full pull request.
When you work together with several other people to add new information to the documentation, it can be useful to work together on the same draft branch without publishing your changes to the main branch yet. This way, you can add multiple changes that others can then further work on, but nothing will be published on docs.dataminer.services yet.
You can do so as follows:
-
Select the draft branch you want to use in GitHub Desktop.
If the branch does not exist yet, ask team.technical.writing@skyline.be to create it. If you were to create a new branch in your fork of the repository instead, other people would not be able to contribute to it as easily.
-
Open the branch in Visual Studio Code. You can do so by clicking the Open in Visual Studio Code button in GitHub Desktop.
-
Make your changes in Visual Studio Code and make sure they are saved. Keep the items listed under Things to watch out for in mind.
-
In GitHub Desktop, add a short summary of your changes in the box in the lower right corner. Optionally, you can also add a description. Then click the Commit button.
-
Click Push origin to push the changes to the remote.
[!NOTE] If you get an error when you click this button, this usually means you are trying to push the changes directly to the main repository instead of to your fork. In GitHub Desktop, go to Repository > Repository settings, and make sure the specified Primary remote repository is your fork. To find the URL of your fork, go to https://github.com/SkylineCommunications/dataminer-docs/network/members, search for your GitHub username, and click the dataminer-docs link next to it.
-
Click the Create Pull Request button. This will open GitHub in a browser.
-
In the browser, make sure that the base you are merging to is the draft branch. If a different base branch is selected, make sure to select the correct branch.
-
Click Create pull request.
After you have created a pull request, the Skyline documentation team will need to merge your pull request so that it becomes available in the branch for other people as well.
Tip
This can take some time. We recommend that you enable notifications in your account settings so that you get a notification when the merge is done.
When your pull request has been merged, others can continue to work on your changes. However, to see all recent changes merged to the draft branch in your own fork, you will need to make sure that the draft branch in your fork is up to date.
-
Go to the dataminer-docs repository on GitHub.
-
In the top-right corner, click the triangle button next to Fork and select your fork.
-
In the top-left corner, change the branch from main to your draft branch.
-
Check the top of the page. If it says the branch is a number of commits behind the draft branch located on the dataminer-docs repository, your branch is no longer up to date. If there is no such indication, there is no need to continue with this procedure.
-
To update your fork, click the triangle button next to Synch fork and select Update branch.
-
In GitHub Desktop, click Fetch origin. If there are commits on the branch that do not yet exist on your machine, the option to Pull origin will become available.
Now that all commits are available on your machine, you can continue to make changes.
When all the necessary changes have been made and the draft branch is ready for publication:
-
Go to the dataminer-docs repository on GitHub.
-
In the top-left corner, switch from the main branch to the draft branch.
-
At the top of this page, click the number of commits the branch is ahead SkylineCommunications:main.
A page will be displayed with a summary of all changes made to the draft branch.
-
Make sure the base you are merging to is set to main.
-
Click Create pull request.
-
Double-check the title and description for the pull request, and modify them if necessary.
-
Click Create pull request.
All changes saved on the draft branch will now be published to docs.dataminer.services.
After you have made a pull request and before it is merged into the main branch by the Skyline documentation team, it is possible to continue working on that existing pull request.
You can do so as follows:
-
Change the pull request from a full pull request to a draft pull request.
-
Open GitHub Desktop and select Current branch.
-
In the Pull requests tab, select the pull request you want to continue working on. Your current branch will now have changed.
-
Open the branch in Visual Studio Code. You can do so by clicking the Open in Visual Studio Code button in GitHub Desktop.
-
Make your changes in Visual Studio Code and make sure they are saved. Keep the items listed under Things to watch out for in mind.
-
In GitHub Desktop, add a short summary of your changes in the box in the lower right corner. Optionally, you can also add a description. Then click the Commit button. This commit will now be added to the previous pull request.
-
When the pull request is ready to be merged, you can click Ready for review on the pull request page to change it from a draft into a full pull request.
Before you push your changes to the repository, it is often a good idea to make a test build on your local machine. This is especially the case if your changes involve adding or removing files, adding cross-references, changing headers, and/or updating a toc.yml file.
To be able to make a local test build, you need to have DocFX installed. DocFX is the static website generator that is used under the hood to create the https://docs.dataminer.services/ website.
-
Install .NET 6.0 SDK or higher from dotnet.microsoft.com.
-
Open a command prompt and enter the command
dotnet tool update -g docfx
-
Test whether DocFX was installed correctly by entering
docfx --version
.If information similar to the following text is returned, DocFX was installed correctly:
2.67.3+f28165af43dde2ec072a79fa2479f475fcd947ad ...
Tip
Alternative ways to install DocFX can be found on the DocFX website.
Note
If you use this "dotnet" command, it is no longer necessary to add the DocFX folder to the Windows Path variable as was the case in the past. If you configured this earlier, we recommend that you remove this folder from the Path variable again and reboot.
-
Make sure .NET 6.0 SDK or higher is installed on your machine. You can download the latest version from dotnet.microsoft.com.
-
Go to the root folder of the repository on your local machine, e.g.
C:\GitHub\dataminer-docs\dataminer-docs
. -
Double-click the file buildDocs.cmd.
This will open a command window where the following commands will run:
-
dotnet restore "src/NuGetPackages"
-
dotnet build "src/NuGetPackages" --configuration Release
-
docfx metadata
-
docfx build
-
docfx serve _site
-
-
In a browser, go to http://localhost:8080/ to preview the website.
[!NOTE] Using the search box when viewing the test website on http://localhost:8080/ will not return any pages from the test website. The search engine only indexes the published content on https://docs.dataminer.services/ and will, as such, only return pages from that website.
-
When you have finished previewing the website, close the command window.
Note
If port 8080 is not available, you will need to run buildDocs.cmd from a command prompt with the correct port as an argument, e.g. buildDocs 8081
.
Important
If you make test builds often, you may need to occasionally clear the files in the \dataminer-docs\obj\.cache\build\
folder of your local version of the documentation. Depending on your DocFX version, these can pile up and take up a large amount of memory in the long run.
If you make repeated test builds to check changes you have made, and you are only making changes to markdown files, you can also run these commands manually in the Visual Studio Code terminal. This has the advantage that you do not need to run all of the commands every time, so your test builds can be generated more quickly.
-
If no Terminal pane is open in Visual Studio Code, go to Terminal > New Terminal.
-
In the Terminal pane, do the following:
-
Enter
clear
to clear the terminal. -
Enter the following commands:
-
dotnet restore "src/NuGetPackages"
-
dotnet build "src/NuGetPackages" --configuration Release
-
docfx metadata
-
docfx build
-
docfx serve _site
[!NOTE]
- The first three commands are needed to generate the API docs. If you make repeated test builds to check changes you have made, and you are only making changes to markdown files, you can skip these three commands after your first build.
- This step requires that .NET 6.0 SDK or higher is installed on your machine. If this is not installed yet, you will get a build error. You can download the latest version from dotnet.microsoft.com.
-
-
In a browser, go to http://localhost:8080/ to preview the website.
[!TIP] If you are not able to access localhost:8080, you can specify a different port by entering e.g.
docfx serve _site -p 8090
.When you have finished previewing the website, in the Terminal pane, press Ctrl+C to exit the preview mode.
[!NOTE] Using the search box when viewing the test website on http://localhost:8080/ will not return any pages from the test website. The search engine only indexes the published content on https://docs.dataminer.services/ and will, as such, only return pages from that website.
-
Important
If you make test builds often, you may need to occasionally clear the files in the \dataminer-docs\obj\.cache\build\
folder of your local version of the documentation. Depending on your DocFX version, these can pile up and take up a large amount of memory in the long run.
Markdown is a lightweight markup language with plain text formatting syntax. It exists in different "flavors". We make use of DocFX Flavored Markdown (DFM). The easiest way to learn how to work with this is to look at our existing documentation and imitate what you see. You can also find more information about DFM basics below.
For more detailed info about DFM syntax, see Docs Markdown reference.
Each paragraph should be separated from the next paragraph by an empty line. If you do not add this empty line, the paragraphs will be combined into one. For example, the markdown below will be generated as one single paragraph:
My text.
My additional text.
This will look like this:
My text. My additional text.
To separate these lines into individual paragraphs, an empty line is needed:
My text.
My additional text.
Note
Every page should also end in an empty line.
To display text in bold, add two asterisks before and after the text.
For example:
This is an example of **bold** text.
To display text in italics, add an asterisk before and after the text.
For example:
This is an example of *italics*.
Note
If you use underscores instead of asterisks to display text in italics, this will also be displayed correctly in our documentation. However, for the sake of consistency, this is not recommended.
DFM supports both bulleted and numbered lists. Use numbered lists if the order of the list items is important, for example in a procedure where each list item represents a step of the procedure. Otherwise, use bulleted lists.
To create a bulleted list, add a hyphen at the start of each list item. For example:
- A list item
- Another list item
To create a numbered list, add "1. " at the start of each list item. For example:
1. First list item
1. Second list item
When the documentation is generated, the numbering will automatically be adjusted to a correctly numbered list.
While it is possible to use "1. ", "2. ", "3. ", etc., we do not recommend this, as it can lead to a lot of needless editing if something is added or removed in an existing numbered list.
Note
Unlike for regular paragraphs, it is not necessary to leave an empty line between the different items of the same list (although you can do so if you prefer this). However, there must always be an empty line before and after a list.
To create an indented paragraph, add spaces before the paragraph. If you want to use indented paragraphs with bulleted or numbered lists, make sure the number of spaces matches the number of characters in front of the list text, so that the text is aligned correctly. For example:
1. First list item
Indented text in between the list items.
1. Second list item
If you use an inconsistent number of spaces, the indentation may not be displayed correctly.
It is also possible to add indented lists and to add indented paragraphs in between those. Just make sure the spacing is always consistent. For example:
1. First main list item
Indented text in between the list items, introducing another list:
1. First list item
1. Second list item
Indented text in between the list items
1. Third list item
1. Second main list item
Headings are indicated with a hash symbol. Add one hash symbol in front of the title at the top of each page. For subsequent headings, use a number of hash symbols corresponding with the header level.
For example:
# Page title: heading level 1
## First sublevel: heading level 2
### Second sublevel: heading level 3
#### Third sublevel: heading level 4.
##### Fourth sublevel: heading level 5.
Do not skip heading levels. For example, do not use heading level 3 right after heading level 1 while there is no heading level 2 in between.
You can use up to five heading levels on a single page. If you need more levels, you will need to divide your content over several pages.
To create a table, use pipe characters to show the column edges. Each table should have a header row, which is followed by a row where dashes fill in the space between the pipe characters. For example:
| Column name | Another Column name |
|-------------|---------------------|
| Column text | More column text |
| Column text | More column text |
You can align the pipe characters so that the table also looks like a table in the Markdown source, but this is not necessary. If you specify the table above as follows, it will look exactly the same in the published version of the documentation:
| Column name | Another Column name |
|--|--|
| Column text | More column text |
| Column text | More column text |
If table cells contain a lot of text, it can be next to impossible to keep everything neatly aligned in the Markdown source, so in that case this second syntax may be preferable. Just make sure you use the correct number of pipe characters so that your number of columns is the same in each row, otherwise the table will not be generated correctly.
Also note that you can align table columns by using colons. See the following example:
| Fun | With | Tables |
| :------------------- | -------------------: |:---------------:|
| left-aligned column | right-aligned column | centered column |
| $100 | $100 | $100 |
| $10 | $10 | $10 |
| $1 | $1 | $1 |
To display code examples in separate code blocks, place three backquotes (```) above and below those blocks. In addition, next to the three backquotes above the blocks, specify the type of code, e.g. csharp, md, xml, etc.
To display inline code within a paragraph, add a backquote before and after the code.
To add a link, place the link text that should be displayed in square brackets, followed by the link itself in parentheses. For example:
For more detailed info about DFM syntax, see [Docs Markdown reference](https://docs.microsoft.com/en-us/contribute/markdown-reference).
To add a cross-reference, i.e. a link to another page in the documentation, use the same format, but specify the link in the format "xref:uid". For example:
See [Basic concepts](xref:BasicConcepts).
To find this UID, open the page you want to link to in the repository. Each page has a UID specified at the top. For example, for the current page, this looks like this:
---
uid: contributing
---
To add a cross-reference to a header on the same page as the cross-reference itself, do not specify "xref:", but instead add a hash followed by the header text, lowercase without special characters and with hyphens instead of spaces. For example:
If you are unfamiliar with this syntax, refer to [Markdown syntax](#markdown-syntax).
To add a cross-reference to a specific header of a different page in the documentation, use the "xref:uid" syntax, followed by a hash and the header text, specified in the same way as for a link on the same page. For example:
See [System components](xref:BasicConcepts#system-components).
To add an image, first place the image in the correct folder in the repository. For example, to add an image for the user guide section of the documentation, add the image in the folder "user-guide/images".
To then display the image in the text, use the following syntax:
![Alt text](~/folder containing the images folder/images/ImageName.png)
For example:
![Awards](~/dataminer-overview/images/awards.png)
Note
To upload images, use GitHub Desktop. See Making a larger contribution.
It is possible to display special "alert" blocks that focus the reader's attention on something important. The following types of alerts are supported:
> [!NOTE]
> Information that should stand out from the rest of the text.
> [!TIP]
> Optional information that could be helpful. This is for example used for cross-references to sections with other information that may be relevant.
> [!IMPORTANT]
> Essential information that users must definitely keep in mind.
> [!CAUTION]
> Information about possible negative consequences of an action.
> [!WARNING]
> Information about dangerous consequences of an action.
These alerts are displayed as follows:
Note
Information that should stand out from the rest of the text.
Tip
Optional information that could be helpful. This is for example used for cross-references to sections with other information that may be relevant.
Important
Essential information that users must definitely keep in mind.
Caution
Information about possible negative consequences of an action.
Warning
Information about dangerous consequences of an action.
Some characters, such as angle brackets and backslashes, are used as part of the Markdown syntax. If you want to just display these characters, this may not work. Add a backslash in front of such a character to make sure it is displayed correctly.
For example, to make sure <script name>
is displayed correctly, specify \<script name>
instead.
This is not necessary in text that is formatted as inline code or as a code block (using backquotes).
To allow easier editing and ensure consistency with the rest of the documentation, keep the following things in mind when you write a new section in the documentation.
When you add a procedure that consists of several steps, use a numbered list, and make sure each list item corresponds with one step in the procedure. This way the user will have a clear overview of the different steps.
If you want to add information related to a step that is not actually something the user needs to do (e.g. the result of a step), add this as an indented paragraph in the list.
For example:
-
Click Add.
A pop-up window will open.
-
Fill in the boxes in the pop-up window.
Tip
In your list, just use the prefix "1." for each item. The list will automatically be updated to the correct numbering when the documentation is generated. Creating lists this way allows you to add items in the list without having to manually alter the numbering for every item that follows them. See also the Microsoft Docs Contributor Guide.
Only use numbered lists if the order of each list item is important. If you for instance want to enumerate several things, but their order does not matter, use a bulleted list (using the prefix "-" for each item).
Avoid contractions (e.g. you're, they're, it's). In formal documentation, these are not usually used.
Exact references to text in the UI are usually displayed in italic type. This can help to avoid confusion, as otherwise it may not always be clear which part of the text is a UI reference.
For example: "Below Exclusions, click Add exclusion and select either Protocol or the name of the app."
In accordance with the Microsoft style guide, double quotation marks are used in our documentation instead of single quotation marks.
However, there is one exception to this. Because DocFX cannot handle double quotation marks in titles, try to avoid quotation marks in them as much as possible or use single quotation marks if you cannot do without.
Be careful when you use screenshots of the DataMiner Cube UI, as these can get outdated quickly. For this reason, do not use screenshots if this has no added value.
If you do add a screenshot, ideally there should be some indication of the version of the software displayed in the screenshot, so it is clear if the screenshot is outdated.
Avoid writing about your reader as "the user", but instead use "you".
The only time when "the user" is appropriate is when whoever you are writing for will create or configure something for another user, and it is that other user you want to indicate.
Examples:
-
You can find more information on DataMiner Dojo. (Instead of The user can find more information on DataMiner Dojo.)
-
When you add a feed component to a dashboard, the user of the dashboard will be able to select a feed.
Symptom: After you create a pull request, you see a warning that the branch contains conflicts that must be resolved before your branch can be merged into the main branch.
Resolution:
-
If the Resolve conflicts button is deactivated, your pull request's merge conflicts are too complex to resolve in the web editor. In this case, use GitHub Desktop and Visual Studio Code to resolve the conflicts.
-
If you can click the Resolve conflicts button, proceed to resolve the merge conflicts in the web editor.
On the left side of the web editor, a list of conflicting files is displayed. The header bar shows the number of conflicts in the current file.
To resolve the merge conflict(s):
-
Decide whether to keep your branch's changes (i.e. the current changes), the main branch's changes (i.e. the incoming changes), or combine both. The bracket on the left indicates the beginning and end of the current and incoming changes.
-
Delete the conflict markers
<<<<<<<
,=======
, and>>>>>>>
. -
If multiple merge conflicts exist in the file, scroll down to the next set of conflict markers, and repeat the previous steps to resolve your merge conflict.
-
Click Mark as resolved in the top-right corner of the header bar.
-
If multiple files have conflicts, select the next file you want to edit and repeat the previous steps until all merge conflicts are resolved.
-
To save your changes, select Commit merge.
-
Symptom:
You encounter one of the following situations:
-
After you create a pull request, you see a warning that the branch contains conflicts that must be resolved before your branch can be merged into the main branch. However, your pull request's merge conflicts are too complex to resolve in the web editor.
-
In GitHub Desktop, when you try to merge the main branch into your current branch, you get a warning that there are one or multiple conflicted files.
[!NOTE] If this is your starting point, skip directly to the Open in Visual Studio Code step in the procedure below.
Resolution:
Note
Ensure you have Visual Studio Code installed before following this procedure.
-
In GitHub Desktop, make sure the branch containing your changes is selected.
-
Select Current branch > Choose a branch to merge into [name-of-your-branch].
-
Select to merge the main branch into your branch.
A warning will appear indicating conflicted files.
-
Click Create a merge commit.
[!NOTE] Make sure the main branch is up to date. If you suspect the latest changes are not on your local machine, switch to the main branch, and click Fetch origin to receive the latest changes from the remote repository. Then switch back to the branch containing your changes.
GitHub Desktop will display a list of merge conflicts to be resolved.
-
Select Open in Visual Studio Code.
If there are several files with merge conflicts, this button is available for each file. Use the button for one of the files. When you have resolved the conflicts in that file as detailed below, you can then continue with the next one.
-
In Visual Studio Code, decide whether you want to keep your branch's changes (i.e. the current changes), the main branch's changes (i.e. the incoming changes), or if you want to combine the two.
Color indicators represent the beginning and end of the current and incoming changes.
-
Either select a preset option, e.g. Accept Incoming Change, or resolve the conflict manually and delete the conflict markers
<<<<<<<
,=======
, and>>>>>>>
. -
If multiple merge conflicts exist in the file, scroll down to the next set of conflict markers, and repeat the two previous steps to resolve your merge conflict.
-
Click File in the top-left corner of the Visual Studio Code header bar, and select Save.
-
Go to GitHub Desktop again and check if any conflicts still need to be resolved.
If a green checkmark is displayed next to the conflicted file name, the merge conflicts have been resolved. If no checkmark is displayed, you may have overlooked a merge conflict in your file.
-
If there are other conflicts that need to be resolved, select Open in Visual Studio Code again and repeat the previous steps until a green checkmark is displayed for all conflicted files.
-
Select Continue merge.
-
Click Push origin.
The number of local commits being pushed to GitHub may vary, depending on how outdated your current branch was.
Symptoms: You have made a pull request, but there is an unusually high number listed next to Commits and Files changed. The list of commits includes changes made by other contributors of the DataMiner documentation.
Cause: Your changes are being pushed to the wrong base repository. To verify whether this is the case, hover your mouse over main in [Your-GitHub-username] wants to merge # commits into main from [name-of-branch]
.
-
Correct:
SkylineCommunications/dataminer-docs:main
-
Incorrect:
[your-GitHub-username]/dataminer-docs:main
Resolution:
-
Scroll down and click Merge pull request.
-
Select Confirm merge.
-
In the top-left corner, click dataminer-docs.
-
Click the downwards arrow next to Contribute and select Open pull request.
-
Ensure that the base repository you are merging to is
SkylineCommunications/dataminer-docs
. -
Enter a title and description for your changes and click Create pull request.
[!NOTE] Make sure the option Allow edits by maintainers is selected when you create the pull request, so that the documentation team will be able to correct any small issues (e.g. typos) directly.
Symptom: An item shows up twice in the table of contents even though it was only entered once in the toc.yml.
Resolution: Make sure there is no hyphen in front of the topicUid line. Only the name line should be preceded by a hyphen.
Symptom: When trying to create a build, you get the exception "No instances of MSBuild could be detected".
Resolution: If you only have .NET 7 installed, and not .NET 6, adjust the .csproj file in the build folder of the repository so that it targets "net7.0" instead of "net6.0".
Symptom: When you try to create a test build, this fails with the following error:
Build failed.
[22-11-04 12:34:56.248]Warning:[ImportPlugins]Skipping file D:\DocFX\plugins_2xobfivj.yks\plugins\System.Memory.dll due to load failure: Could
not load file or assembly 'System.Memory, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies.
The located assembly's manifest definition does not match the assembly reference.
(Exception from HRESULT: 0x80131040)
Resolution: Install the latest version of DocFX.
Symptom: When you try to create a test build, this fails with the following error:
Build failed.
[22-11-04 12:34:56.248]Error:Either provide config file or specify content files to start building documentation.
O Warning(s)
1 Error(s)
Resolution: This issue occurs if you try to make a build of only part of the repository. There are specific files in the root of the repository that are needed to be able to start building documentation, so make sure you always create your test builds based on the complete repository.
Symptom: When you create a test build, it does not include your recent changes.
Resolution: Make sure your changes are all saved. If the Explorer icon in the top-left corner shows a blue circle with a number in it, there are unsaved changes in a number of files corresponding with that number. The files that contain unsaved changes are marked with a white dot in the file header.
Symptom: Newly created branches indicate that they were created a longer time ago.
Resolution:
-
Make sure your fork is up to date.
-
If you installed Git after you installed GitHub Desktop, remove the repository in GitHub Desktop and add it again.
Symptom: When you try to push a commit using GitHub Desktop, this fails with the following error:
Author identity unknown
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit ---global to set the identity only in this repository.
fatal: empty ident name (for <>) not allowed
Resolution:
-
In GitHub Desktop, select Repository in the top-left corner and click Repository settings.
-
In the Git config tab, select Use my global Git config and click Save.
Symptom: When you view your test build, it is not displayed correctly. Among others, no search box is available in the top-right corner.
Resolution: Install the latest version of DocFX.
Tip
You can use the command docfx help
to check which version is installed.
Note
If you have upgraded DocFX, but this upgrade does not seem to have taken effect, check whether you have a path parameter configured that leads to an older version. Go to Edit the system environment variables > Advanced > Environment Variables, select the Path parameter, if available, and click Edit. If an entry is listed that goes to a DocFX folder containing an old version of DocFX, delete that entry.
Symptom: You have made a pull request, but editors are unable to make direct changes to it, even though you want them to.
Resolution: This problem can have several solutions, depending on its cause.
-
Cause: The option Allow edits by maintainers was not selected when you created the pull request.
Resolution: Go to the pull request on GitHub, and make sure the option Allow edits by maintainers is selected.
-
Cause: The branch you have used to create the pull request is protected.
Resolution: On the page for your fork on GitHub (i.e.
https://github.com/[Your GitHub handle]/dataminer-docs/
), go to Settings > Branches, and check if you have enabled protection for the branch. If you have, disable this protection.
As our way of working is very similar to the approach used for Microsoft Docs, it can be useful to take a look at the Microsoft Docs Contributor Guide for additional information and guidelines.
For more information about DocFX, you can also refer to Getting Started with DocFX.
For more information on GitHub pull requests, see Pull requests.