Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Move chart folder (via #136)
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Eroshenko authored Sep 7, 2021
1 parent a579601 commit b5f6d43
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Kubeconfig
uses: digitalocean/action-doctl@master
env:
Expand All @@ -27,5 +28,5 @@ jobs:
helmv3 upgrade allure-docs allure/site \
--values $GITHUB_WORKSPACE/chart/config.yml \
--kubeconfig $GITHUB_WORKSPACE/.kubeconfig \
--set image.tag=${{ github.event.inputs.stage }} \
--set image.tag=${{ github.event.inputs.version }} \
--install
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import { withPrefix } from 'gatsby';
import PropTypes from 'prop-types';
import config from 'config';
import { scrollbar } from './styles';
Expand All @@ -19,7 +20,7 @@ export default class HTML extends React.Component {
<meta property="twitter:image" content={config.metadata.ogImage} />
) : null}
{config.metadata.favicon ? (
<link rel="shortcut icon" type="image/svg" href={config.metadata.favicon} />
<link rel="shortcut icon" type="image/svg" href={withPrefix(config.metadata.favicon)} />
) : null}
<noscript key="noscript"></noscript>
{this.props.headComponents}
Expand Down

0 comments on commit b5f6d43

Please sign in to comment.