diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml new file mode 100644 index 0000000..7c5aff2 --- /dev/null +++ b/.github/workflows/action.yml @@ -0,0 +1,30 @@ +name: Linkspector +on: [ pull_request ] +jobs: + check-links: + name: runner / linkspector + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + # Step to set up Node.js environment + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: 'latest' + + # Step to install Docsify CLI + - name: Install Docsify CLI + run: npm install -g docsify-cli@latest + + # Step to start Docsify server + - name: Start Docsify server + run: docsify serve ./docs & + + # Step to run Linkspector + - name: Run linkspector + uses: umbrelladocs/action-linkspector@v1 + with: + reporter: github-pr-review + config_file: linkspector_config.yaml + fail_on_error: true diff --git a/docs/_sidebar.md b/docs/_sidebar.md index 7d4c01e..bf3be62 100644 --- a/docs/_sidebar.md +++ b/docs/_sidebar.md @@ -1,7 +1,7 @@ - Qlin Prescriptions - [Create a New Prescription](qlin_prescriptions/create_prescription.md) - [My prescriptions](qlin_prescriptions/my_prescription.md) -- Qlin Genetics +- [Qlin Genetics](qlin_genetic/home.md) - [Prescriptions](qlin_genetic/prescription/landing.md) - [Details](qlin_genetic/prescription/details.md) - [Variants](qlin_genetic/prescription/variants.md) diff --git a/docs/docs-fr/_sidebar.md b/docs/docs-fr/_sidebar.md index c98972e..4038924 100644 --- a/docs/docs-fr/_sidebar.md +++ b/docs/docs-fr/_sidebar.md @@ -1,7 +1,7 @@ - Qlin Prescriptions - [Créer une nouvelle prescription](fr/qlin_prescriptions/create_prescription.md) - [Mes prescriptions](fr/qlin_prescriptions/my_prescription.md) -- Qlin Génétique +- [Qlin Génétique](fr/qlin_genetic/home.md) - [Prescriptions](fr/qlin_genetic/prescription/landing.md) - [Détails](fr/qlin_genetic/prescription/details.md) - [Contrôle qualité](fr/qlin_genetic/prescription/qc.md) diff --git a/docs/docs-fr/qlin_genetic/exploration.md b/docs/docs-fr/qlin_genetic/exploration.md index 7888ecf..108748f 100644 --- a/docs/docs-fr/qlin_genetic/exploration.md +++ b/docs/docs-fr/qlin_genetic/exploration.md @@ -2,4 +2,4 @@ La section **Exploration** permet de consulter l'entièreté des variants génétiques SNV présents dans Qlin Génétique. -L'utilisation du [gestionnaire de filtres](/fr/qlin_genetic/_filter_manager/filter_manager.md) et du [panneau latéral de filtres](/fr/qlin_genetic/filter_panel/filter_panel.md) facilite la visualisation des variants SNV dans le [tableau](/fr/qlin_genetic/tables/tables.md). +L'utilisation du [gestionnaire de filtres](/fr/qlin_genetic/filters_manager/filters_manager.md) et du [panneau latéral de filtres](/fr/qlin_genetic/filter_panel/filter_panel.md) facilite la visualisation des variants SNV dans le [tableau](/fr/qlin_genetic/tables/tables.md). diff --git a/docs/docs-fr/qlin_genetic/home.md b/docs/docs-fr/qlin_genetic/home.md index 8ba61ba..0b191f5 100644 --- a/docs/docs-fr/qlin_genetic/home.md +++ b/docs/docs-fr/qlin_genetic/home.md @@ -2,5 +2,5 @@ La page d'accueil vous permet de rechercher : -- une [prescription](fr/prescription/details.md) par numéro de prescription, requête, échantillon, dossier, numéro de patient et numéro de lot +- une [prescription](fr/qlin_genetic/prescription/details.md) par numéro de prescription, requête, échantillon, dossier, numéro de patient et numéro de lot - un [variant](fr/qlin_genetic/exploration.md) par locus, dbSNP, ClinVar diff --git a/docs/qlin_genetic/archives.md b/docs/qlin_genetic/archives.md index 62e42ca..ad5b4ec 100644 --- a/docs/qlin_genetic/archives.md +++ b/docs/qlin_genetic/archives.md @@ -1,3 +1,3 @@ # Archives -The **Archives** section allows the search for [files of a prescription](prescription/files.md) by request ID or patient ID. +The **Archives** section allows the search for [files of a prescription](qlin_genetic/prescription/files.md) by request ID or patient ID. diff --git a/docs/qlin_genetic/exploration.md b/docs/qlin_genetic/exploration.md index 5dd9614..370fd7a 100644 --- a/docs/qlin_genetic/exploration.md +++ b/docs/qlin_genetic/exploration.md @@ -2,4 +2,4 @@ The **Exploration** section allows you to view all the SNV genetic variants present in Qlin Genetics. -The use of the [filter manager](_filter_manager/filter_manager.md) and the [filter sidebar](filter_panel/filter_panel.md) facilitates the visualization of SNV variants in the [table](tables/tables.md). +The use of the [filter manager](qlin_genetic/filters_manager/filters_manager.md) and the [filter sidebar](filter_panel/filter_panel.md) facilitates the visualization of SNV variants in the [table](tables/tables.md). diff --git a/docs/qlin_genetic/home.md b/docs/qlin_genetic/home.md index a663a72..b522734 100644 --- a/docs/qlin_genetic/home.md +++ b/docs/qlin_genetic/home.md @@ -2,5 +2,5 @@ The homepage allows you to search: -- a [prescription](prescription/details.md) by prescription, requisition, sample, medical record number, patient number and run number -- a [variant](qlin_genetic/exploration.md) by locus, dbSNP, ClinVar +- a [prescription](qlin_genetic/prescription/details.md) by prescription, requisition, sample, medical record number, patient number and run number +- a [variant](qlin_genetic/exploration.md) by locus, dbSNP, ClinVar \ No newline at end of file diff --git a/linkspector_config.yaml b/linkspector_config.yaml new file mode 100644 index 0000000..506b385 --- /dev/null +++ b/linkspector_config.yaml @@ -0,0 +1,14 @@ +dirs: +- docs +useGitIgnore: true +replacementPatterns: +- pattern: "(fr/)(.*)(?