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
4 changes: 2 additions & 2 deletions .github/workflows/build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ on:
pull_request:

concurrency:
group: ${{ github.ref }} (Build Extensions)
cancel-in-progress: false
group: build-check-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build-and-deploy:
Expand Down
4 changes: 4 additions & 0 deletions src/scss/components/markdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,10 @@
}
.tabs-container .tabs {
position: relative;
// Isolate the active tab's z-index (999, set above so the active
// tab sits on top of .tabs::before) from the rest of the page so
// it can't climb above the sticky docs search bar.
isolation: isolate;
padding-left: 0 !important;
}
.tabs-container .tabs::before {
Expand Down
10 changes: 8 additions & 2 deletions src/theme/DocItem/Layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,17 @@ import DocItemContent from '@theme/DocItem/Content';
import DocBreadcrumbs from '@theme/DocBreadcrumbs';
import ContentVisibility from '@theme/ContentVisibility';
import type { Props } from '@theme/DocItem/Layout';
import { generateUrl } from './pathTransfer';
import { DocsEdit } from '../../../components/Icons/docs-edit';

import styles from './styles.module.css';

const GITHUB_TREE_BASE = 'https://github.com/apache/doris-website/tree/master/';

function sourceToEditUrl(source: string | undefined): string {
if (!source) return GITHUB_TREE_BASE;
return `${GITHUB_TREE_BASE}${source.replace(/^@site\//, '')}`;
}

/**
* Decide if the toc should be rendered, on mobile or desktop viewports
*/
Expand Down Expand Up @@ -72,7 +78,7 @@ export default function DocItemLayout({ children }: Props): JSX.Element {
{isNew ? (
<></>
) : (
<Link to={generateUrl(location.pathname)} className={`mr-6 ${styles.footerBtn}`}>
<Link to={sourceToEditUrl(metadata.source)} className={`mr-6 ${styles.footerBtn}`}>
<DocsEdit /> <span className="ml-2">{isZH ? '编辑本页' : 'Edit this page'}</span>
</Link>
)}
Expand Down
71 changes: 0 additions & 71 deletions src/theme/DocItem/Layout/pathTransfer.ts

This file was deleted.

Loading