Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to most recent version of ms-gh-pages #219

Merged
merged 1 commit into from
Mar 5, 2024
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/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:

steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 18
node-version: 20
cache: 'npm'
cache-dependency-path: './site/package-lock.json'
- run: npm ci
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:

steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 18
node-version: 20
cache: 'npm'
cache-dependency-path: './site/package-lock.json'
- run: npm ci
Expand Down
6 changes: 3 additions & 3 deletions site/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ const { plugins } = require('./src/config/base-gatsby-plugins');

module.exports = {
siteMetadata: {
title: `Morgan Stanley Open Source Software`,
description: `Morgan Stanley Open Source Software`,
siteUrl: 'http://opensource.morganstanley.com/crossroads',
title: `Crossroads`,
description: `Crossroads is a dotnet core commandline tool packager for developers.`,
siteUrl: 'http://opensource.morganstanley.com/Crossroads',
documentationUrl: false,
// documentationUrl: url-of.documentation.site,
},
Expand Down
4 changes: 2 additions & 2 deletions site/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"gatsby"
],
"engines": {
"node": "^18.14.0",
"npm": "^9.3.1"
"node": "^20.11.0",
"npm": "^10.3.0"
},
"dependencies": {
"@mdx-js/react": "^2.3.0",
Expand Down
20 changes: 0 additions & 20 deletions site/src/config/base-gatsby-plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,6 @@ const gatsbyRemarkPlugins = [
resolve: `gatsby-remark-prismjs`,
options: {
showLineNumbers: false,
languageExtensions: [
{
language: 'superscript',
extend: 'javascript',
definition: {
superscript_types: /(SuperType)/,
},
insertBefore: {
function: {
superscript_keywords: /(superif|superelse)/,
},
},
},
],
prompt: {
user: 'root',
host: 'localhost',
global: false,
},
escapeEntities: {},
},
},
`gatsby-remark-copy-linked-files`,
Expand Down
4 changes: 2 additions & 2 deletions site/src/pages/documentation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import { Link, graphql } from 'gatsby';
import Layout from '../../components/layout';
import Seo from '../../components/seo';

import DocumentationHero from '../../../content/documentation-hero.mdx';
import HeroContent from '../../../content/hero.mdx';

const DocumentationIndex = ({ data, location }) => {
const docs = data.allMdx.nodes;

return (
<Layout data={data} location={location}>
<div className="main docs-main">
<DocumentationHero />
<HeroContent />
{docs.map((node) => {
const title = node.frontmatter.title;
const toc = node.tableOfContents.items;
Expand Down
4 changes: 2 additions & 2 deletions site/src/pages/news/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import { Link, graphql } from 'gatsby';
import Layout from '../../components/layout';
import Seo from '../../components/seo';

import NewsHero from '../../../content/news-hero.mdx';
import HeroContent from '../../../content/hero.mdx';

const NewsIndex = ({ data, location }) => {
const news = data.allMdx.nodes;

return (
<Layout data={data} location={location}>
<div className="main news-main">
<NewsHero />
<HeroContent />
<Seo title="News" />
{news.map((node) => {
const title = node.frontmatter.title;
Expand Down
6 changes: 0 additions & 6 deletions site/src/styles/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,3 @@
.header-nav ul li:last-of-type {
margin-right: 0;
}

@media (max-width: 767px) {
.header-main .content {
display: block;
}
}
4 changes: 0 additions & 4 deletions site/src/styles/prismjs.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,6 @@ http://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascr
--aqua: #4ccacd;
}

pre {
overflow: auto;
}

pre::-webkit-scrollbar {
width: 14px;
}
Expand Down
2 changes: 1 addition & 1 deletion site/src/styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
}

.documentation-nav {
margin-top: 2rem;
margin-top: 1rem;
flex-grow: 1;
width: 30%;
}
Expand Down
4 changes: 4 additions & 0 deletions site/src/templates/documentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ const DocumentationTemplate = ({ children, data, pageContext, location }) => {
const docs = data.allMdx.nodes;
const toc = data.mdx.tableOfContents.items;
const pageTitle = pageContext.frontmatter.title;
const siteTitle = data.site?.siteMetadata?.title;

return (
<Layout data={data} location={location}>
<Seo title={pageTitle} description={pageContext.description} />
<article className="page-main content">
psmulovics marked this conversation as resolved.
Show resolved Hide resolved
<h3>{siteTitle}</h3>
</article>
<article className="page-main content documentation-main">
<nav className="nav documentation-nav">
<h4>Documentation</h4>
Expand Down
Loading