Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 3 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ jobs:
env:
ESS_PROTECTED_FILESTORE_USERNAME: ${{ secrets.ESS_PROTECTED_FILESTORE_USERNAME }}
ESS_PROTECTED_FILESTORE_PASSWORD: ${{ secrets.ESS_PROTECTED_FILESTORE_PASSWORD }}
DOCSWORKDIR: "build/docs"
steps:
- uses: actions/checkout@v6
with:
Expand All @@ -63,17 +62,17 @@ jobs:
frozen: true
environments: docs
- run: pixi run --locked -e docs docs
- run: pixi run --locked -e docs linkcheck
- run: pixi run --frozen -e docs linkcheck
if: ${{ inputs.linkcheck }}
- uses: actions/upload-artifact@v7
id: artifact-upload-step
with:
name: docs_html
path: build/html/
- run: echo "::notice::https://remote-unzip.deno.dev/${{ github.repository }}/artifacts/${{ steps.artifact-upload-step.outputs.artifact-id }}"
- uses: JamesIves/github-pages-deploy-action@v4.7.3
- uses: JamesIves/github-pages-deploy-action@v4.8.0
if: ${{ inputs.publish }}
with:
branch: gh-pages
folder: html
folder: build/html
single-commit: true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md)
[![PyPI badge](http://img.shields.io/pypi/v/mcstastox.svg)](https://pypi.python.org/pypi/mcstastox)
[![Anaconda-Server Badge](https://anaconda.org/mccode-dev/mcstastox/badges/version.svg)](https://anaconda.org/mccode-dev/mcstastox)
[![Conda Forge Badge](https://img.shields.io/conda/v/conda-forge/mcstastox)](https://prefix.dev/channels/conda-forge/packages/mcstastox)
[![License: BSD 3-Clause](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](LICENSE)

# McStasToX
Expand Down
26 changes: 14 additions & 12 deletions docs/about/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,20 @@ McStasToX is an open source project by the [European Spallation Source ERIC](htt

McStasToX is available as open source under the [BSD-3 license](https://opensource.org/licenses/BSD-3-Clause).

## Citing McStasToX

Please cite the following:

[![DOI](https://zenodo.org/badge/FIXME.svg)](https://zenodo.org/doi/10.5281/zenodo.FIXME)

To cite a specific version of McStasToX, select the desired version on Zenodo to get the corresponding DOI.

## Older versions of the documentation

Older versions of the documentation pages can be found under the assets of each [release](https://github.com/mccode-dev/mcstastox/releases).
Simply download the archive, unzip and view locally in a web browser.
<!-- McStasTox is not published to zenodo or archive old documentations yet. -->
<!-- We will start doing that if needed. -->
<!-- ## Citing McStasToX -->
<!---->
<!-- Please cite the following: -->
<!---->
<!-- [![DOI](https://zenodo.org/badge/FIXME.svg)](https://zenodo.org/doi/10.5281/zenodo.FIXME) -->
<!---->
<!-- To cite a specific version of McStasToX, select the desired version on Zenodo to get the corresponding DOI. -->

<!-- ## Older versions of the documentation -->
<!---->
<!-- Older versions of the documentation pages can be found under the assets of each [release](https://github.com/mccode-dev/mcstastox/releases). -->
<!-- Simply download the archive, unzip and view locally in a web browser. -->

## Source code and development

Expand Down
7 changes: 3 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

# General information about the project.
project = 'McStasToX'
copyright = '2025 Scipp contributors'
author = 'Scipp contributors'
copyright = '2025 mccode contributors'
author = 'mccode contributors'

html_show_sourcelink = True

Expand Down Expand Up @@ -145,8 +145,7 @@
"image_dark": "_static/logo-dark.svg",
},
"external_links": [
{"name": "Scipp", "url": "https://mccode-dev.github.io"},
{"name": "ScippNexus", "url": "https://mccode-dev.github.io/scippnexus"},
{"name": "Scipp", "url": "https://scipp.github.io"},
],
"icon_links": [
{
Expand Down
1 change: 0 additions & 1 deletion docs/developer/getting-started.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# Getting started

## Setting up
Expand Down
1 change: 0 additions & 1 deletion docs/developer/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ maxdepth: 2

getting-started
coding-conventions
dependency-management
```
59 changes: 34 additions & 25 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
:::{image} _static/logo.svg
:class: only-light
:alt: McStasToX
:width: 60%
:align: center
:::
:::{image} _static/logo-dark.svg
:class: only-dark
:alt: McStasToX
:width: 60%
:align: center
:::

```{raw} html
<style>
.transparent {display: none; visibility: hidden;}
.transparent + a.headerlink {display: none; visibility: hidden;}
</style>
```

```{role} transparent
```
<!-- TODO: Uncomment this after adding logo. -->
<!-- :::{image} _static/logo.svg -->
<!-- :class: only-light -->
<!-- :alt: McStasToX -->
<!-- :width: 60% -->
<!-- :align: center -->
<!-- ::: -->
<!-- :::{image} _static/logo-dark.svg -->
<!-- :class: only-dark -->
<!-- :alt: McStasToX -->
<!-- :width: 60% -->
<!-- :align: center -->
<!-- ::: -->
<!---->
<!-- ```{raw} html -->
<!-- <style> -->
<!-- .transparent {display: none; visibility: hidden;} -->
<!-- .transparent + a.headerlink {display: none; visibility: hidden;} -->
<!-- </style> -->
<!-- ``` -->
<!---->
<!-- ```{role} transparent -->
<!-- ``` -->

# {transparent}`McStasToX`
<!-- # {transparent}`McStasToX` -->
# McStasToX

<div style="font-size:1.2em;font-style:italic;color:var(--pst-color-text-muted);text-align:center;">
Python package to read McStas data and export as python objects in different formats or as other files.
Expand All @@ -34,10 +36,17 @@
:heading-offset: 1
:::

:::{include} user-guide/overall_demo.ipynb
:heading-offset: 1
## Quick Start

::::{grid} 1

:::{grid-item-card} {octicon}``eye;1em`` Quick Start with Overall Guide
:link: user-guide/overall_demo.ipynb

:::

::::

## Get in touch

- If you have questions that are not answered by these documentation pages, ask on [discussions](https://github.com/mccode-dev/mcstastox/discussions). Please include a self-contained reproducible example if possible.
Expand Down
42 changes: 21 additions & 21 deletions docs/user-guide/overall_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"id": "6",
"metadata": {},
"source": [
"### Run simulation"
"## Run simulation"
]
},
{
Expand Down Expand Up @@ -93,7 +93,7 @@
"id": "9",
"metadata": {},
"source": [
"### Histogram data to display"
"## Histogram data to display"
]
},
{
Expand Down Expand Up @@ -133,7 +133,7 @@
"id": "13",
"metadata": {},
"source": [
"### Show list of components found in NeXus file"
"## Show list of components found in NeXus file"
]
},
{
Expand All @@ -154,7 +154,7 @@
"id": "15",
"metadata": {},
"source": [
"#### Show list of these with available data"
"### Show list of these with available data"
]
},
{
Expand Down Expand Up @@ -185,7 +185,7 @@
"id": "18",
"metadata": {},
"source": [
"#### Show list of these with geometry information"
"### Show list of these with geometry information"
]
},
{
Expand All @@ -204,7 +204,7 @@
"id": "20",
"metadata": {},
"source": [
"#### Show monitors with pixel ID's"
"### Show monitors with pixel ID's"
]
},
{
Expand Down Expand Up @@ -234,7 +234,7 @@
"id": "23",
"metadata": {},
"source": [
"### Get local pixel coordinates for a given component"
"## Get local pixel coordinates for a given component"
]
},
{
Expand All @@ -255,7 +255,7 @@
"id": "25",
"metadata": {},
"source": [
"### Get global coordinates for a given component"
"## Get global coordinates for a given component"
]
},
{
Expand All @@ -276,7 +276,7 @@
"id": "27",
"metadata": {},
"source": [
"### Get sample position as well"
"## Get sample position as well"
]
},
{
Expand All @@ -298,7 +298,7 @@
"id": "29",
"metadata": {},
"source": [
"### Get pixel coordinates for list of monitors"
"## Get pixel coordinates for list of monitors"
]
},
{
Expand All @@ -320,7 +320,7 @@
"id": "31",
"metadata": {},
"source": [
"### Include source and get all pixel coordinates"
"## Include source and get all pixel coordinates"
]
},
{
Expand All @@ -343,7 +343,7 @@
"id": "33",
"metadata": {},
"source": [
"### Export to (simple) Scipp object"
"## Export to (simple) Scipp object"
]
},
{
Expand Down Expand Up @@ -374,7 +374,7 @@
"id": "36",
"metadata": {},
"source": [
"### Plot event positions"
"## Plot event positions"
]
},
{
Expand All @@ -394,7 +394,7 @@
"id": "38",
"metadata": {},
"source": [
"### Perform coordinate transforms"
"## Perform coordinate transforms"
]
},
{
Expand Down Expand Up @@ -438,7 +438,7 @@
"id": "42",
"metadata": {},
"source": [
"## Load all data in simple scipp format"
"# Load all data in simple scipp format"
]
},
{
Expand Down Expand Up @@ -471,7 +471,7 @@
"id": "45",
"metadata": {},
"source": [
"### Convert to d-space and compare\n",
"## Convert to d-space and compare\n",
"Lets compare data from all the detectors with the previous scipp object that only contained one."
]
},
Expand All @@ -494,7 +494,7 @@
"id": "47",
"metadata": {},
"source": [
"### Also access to data directly\n",
"## Also access to data directly\n",
"Its possible to get access to the data directly if necessary, this is demonstrated here."
]
},
Expand Down Expand Up @@ -534,7 +534,7 @@
"id": "50",
"metadata": {},
"source": [
"### Add additional data to a scipp object\n",
"## Add additional data to a scipp object\n",
"We can add data read directly to the scipp object, here the actual wavelength recorded by McStas."
]
},
Expand Down Expand Up @@ -572,7 +572,7 @@
"id": "53",
"metadata": {},
"source": [
"### Plotting comparison between actual and calculated wavelength"
"## Plotting comparison between actual and calculated wavelength"
]
},
{
Expand All @@ -597,7 +597,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "img-dev-310",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -611,7 +611,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
"version": "3.12.13"
}
},
"nbformat": 4,
Expand Down
Loading
Loading