Fix deploy (move chart folder) by eroshenkoam · Pull Request #136 · allure-framework/allure-docs · GitHub
Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
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
3 changes: 2 additions & 1 deletion .github/workflows/deploy-release.yml
2 changes: 1 addition & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install Gatsby
run: npm install -g gatsby-cli
- name: Build Gatsby
run: gatsby build
run: gatsby build --prefix-paths
- name: Docker Publish
uses: docker/build-push-action@v1
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/chart/config.yml → chart/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ ingress:

image:
pullPolicy: Always
repository: ghcr.io/allure-framework/allure-docs
pullSecret: docker-github
repository: ghcr.io/allure-framework/allure-docs

2 changes: 1 addition & 1 deletion config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
short_name: Allure Report
description: Allure Report - Allure Framework is a flexible lightweight multi-language test report tool
language: en
pathPrefix: "/"
pathPrefix: "/allure-report"
siteImage:
favicon: "/assets/favicon.png"
themeColor: "#ff0000"
Expand Down
4 changes: 2 additions & 2 deletions src/components/Header/Header.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState, useEffect } from 'react';
import { StaticQuery, graphql } from 'gatsby';
import { StaticQuery, graphql, withPrefix } from 'gatsby';
import styled from '@emotion/styled';
import config from 'config';
import Logo from './logo';
Expand Down Expand Up @@ -229,7 +229,7 @@ const Header = ({ setShowSearch, location, themeProvider, show, toggleFullscreen
},
} = data;
const logoLink = logo.link !== '' ? logo.link : '/';
const logoImg = logo.image !== '' ? logo.image : 'images/logo.svg';
const logoImg = logo.image !== '' ? withPrefix(logo.image) : withPrefix('images/logo.svg');
const [darkMode, setDarkMode] = useState(false);
useEffect(() => {
setDarkMode(themeProvider.current.retrieveActiveTheme());
Expand Down
4 changes: 3 additions & 1 deletion src/components/Header/navigation.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import { withPrefix } from 'gatsby';
import styled from '@emotion/styled';
import { onMobile } from '../../styles/responsive';

Expand All @@ -10,10 +11,11 @@ const Navigation = styled(({ className, links }) => {
? links.map((link, key) => {
const openRule = link.external ? '_blank' : '_self';
if (link.link !== '' && link.text !== '') {
const linkHref = link.external ? link.link : withPrefix(link.link)
return (
<li key={key}>
<a
href={link.link}
href={linkHref}
target={openRule}
rel="noopener"
dangerouslySetInnerHTML={{ __html: link.text }}
Expand Down
3 changes: 2 additions & 1 deletion src/html.js