Skip to content

Commit

Permalink
Merge pull request #987 from InseeFr/feat/different-url-documentation
Browse files Browse the repository at this point in the history
feat: add configuration for documentation
  • Loading branch information
PierreVasseur authored Oct 1, 2024
2 parents 9641c67 + 666a459 commit 83bea5a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ SKIP_PREFLIGHT_CHECK=true
VITE_API_MODE=server
VITE_API_BASE_HOST=
VITE_VALIDATION_OPERATION_SERIES_EXTRA_MANDATORY_FIELDS=accrualPeriodicityCode,typeCode
VITE_CONCEPTS_DOCUMENTATION = 'https://inseefr.github.io/Bauhaus/fr/guides/user-guide/concept/'
VITE_OPERATIONS_DOCUMENTATION = 'https://metadonnees.gitlab-pages.insee.fr/rmes/offre-de-service-rmes/#pages/operation-aide'
5 changes: 2 additions & 3 deletions src/packages/modules-concepts/menu/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import D from '../../deprecated-locales';
import { useLocation } from 'react-router-dom';
import { MainMenu } from '../../components/menu';
import { getLang } from '../../utils/dictionnary';
import D from '../../deprecated-locales';

const defaultAttrs = { 'aria-current': 'page' };

Expand All @@ -22,7 +21,7 @@ const MenuConcepts = () => {
alignToRight: true,
},
{
path: `//inseefr.github.io/Bauhaus/${getLang()}/guides/user-guide/concept/`,
path: import.meta.env.VITE_CONCEPTS_DOCUMENTATION,
pathKey: 'help',
className: null,
order: 4,
Expand Down
2 changes: 1 addition & 1 deletion src/packages/modules-operations/menu/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class MenuOperations extends Component {
label: D.indicatorsTitle,
},
help: {
path: '//metadonnees.gitlab-pages.insee.fr/rmes/offre-de-service-rmes/#pages/operation-aide',
path: import.meta.env.VITE_OPERATIONS_DOCUMENTATION,
attrs: {
target: '_blank',
},
Expand Down

0 comments on commit 83bea5a

Please sign in to comment.