Skip to content

Commit

Permalink
Rename writeups to challenges
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNewJavaman committed May 13, 2024
1 parent 9a26aef commit 63fc70d
Show file tree
Hide file tree
Showing 79 changed files with 11 additions and 11 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ const config = {
},
{
type: 'docSidebar',
sidebarId: 'writeups',
sidebarId: 'challenges',
position: 'left',
label: 'Writeups',
label: 'Challenges',
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

const sidebars = {
setup: [{type: 'autogenerated', dirName: 'setup'}],
writeups: [{type: 'autogenerated', dirName: 'writeups'}],
challenges: [{type: 'autogenerated', dirName: 'challenges'}],
};

export default sidebars;
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const levelStyle = {
},
};

export default function WriteupLevelBadge({levels}) {
export default function ChallengeLevelBadge({levels}) {
return levels && <div style={{
marginLeft: '0.6em', // 'auto',
display: 'flex',
Expand Down
6 changes: 3 additions & 3 deletions src/components/SidebarCards/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const cardData = [
permalink: '/ictf-docs/setup'
},
{
title: 'Writeups',
subLabel: 'Read challenge solutions',
permalink: '/ictf-docs/writeups/ai-calculator'
title: 'Challenges',
subLabel: 'Read challenge descriptions, resources, and writeups',
permalink: '/ictf-docs/challenges/ai-calculator'
}
];

Expand Down
4 changes: 2 additions & 2 deletions src/theme/DocSidebarItem/Category/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import Link from '@docusaurus/Link';
import {translate} from '@docusaurus/Translate';
import useIsBrowser from '@docusaurus/useIsBrowser';
import DocSidebarItems from '@theme/DocSidebarItems';
import WriteupLevelBadge from '@site/src/components/WriteupLevelBadge';
import ChallengeLevelBadge from '@site/src/components/ChallengeLevelBadge';
// If we navigate to a category and it becomes active, it should automatically
// expand itself
function useAutoExpandActiveCategory({isActive, collapsed, updateCollapsed}) {
Expand Down Expand Up @@ -164,7 +164,7 @@ export default function DocSidebarItemCategory({
href={collapsible ? hrefWithSSRFallback ?? '#' : hrefWithSSRFallback}
{...props}>
{label}
<WriteupLevelBadge levels={item?.customProps?.levels}/>
<ChallengeLevelBadge levels={item?.customProps?.levels}/>
</Link>
{href && collapsible && (
<CollapseButton
Expand Down
4 changes: 2 additions & 2 deletions src/theme/DocSidebarItem/Link/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Link from '@docusaurus/Link';
import isInternalUrl from '@docusaurus/isInternalUrl';
import IconExternalLink from '@theme/Icon/ExternalLink';
import styles from './styles.module.css';
import WriteupLevelBadge from '@site/src/components/WriteupLevelBadge';
import ChallengeLevelBadge from '@site/src/components/ChallengeLevelBadge';
export default function DocSidebarItemLink({
item,
onItemClick,
Expand Down Expand Up @@ -44,7 +44,7 @@ export default function DocSidebarItemLink({
{...props}>
{label}
{!isInternalLink && <IconExternalLink />}
<WriteupLevelBadge levels={item?.customProps?.levels}/>
<ChallengeLevelBadge levels={item?.customProps?.levels}/>
</Link>
</li>
);
Expand Down

0 comments on commit 63fc70d

Please sign in to comment.