Skip to content

Commit

Permalink
Added submodule and configured it to track gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Varun Malhotra committed May 28, 2024
1 parent a63a432 commit 89aba32
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[submodule "vwo-fme-node-sdk"]
path = vwo-fme-node-sdk
url = [email protected]:wingify/vwo-fme-node-sdk.git
branch = gh-pages
[submodule "docs/vwo-fme-node-sdk"]
path = docs/vwo-fme-node-sdk
url = [email protected]:wingify/vwo-fme-node-sdk.git
18 changes: 18 additions & 0 deletions docs.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
layout: page
title: Wingify Engineering Projects - Documentation
description: Documentation of our public projects
permalink: /docs/
---


<div class="projects">
<div class="project-box">
<a href="/vwo-fme-node-sdk/">
<img src="/images/[email protected]" width="160" height="160">
<h3>VWO FME Node SDK - Documentation</h3>
</a>
<p>Node.js SDK for VWO Feature Management and Experimentation</p>
<span class="pill">javascript</span>
</div>
</div>
1 change: 1 addition & 0 deletions docs/vwo-fme-node-sdk
Submodule vwo-fme-node-sdk added at b43fc0
4 changes: 2 additions & 2 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ exports.createPages = ({ graphql, actions }) => {

const postsEdges = result.data.allMarkdownRemark.edges;

postsEdges.forEach((edge, index) => {
postsEdges.forEach((edge, index) => {
const nextID = index + 1 < postsEdges.length ? index + 1 : 0;
const prevID = index - 1 >= 0 ? index - 1 : postsEdges.length - 1;
const nextEdge = postsEdges[nextID];
Expand Down Expand Up @@ -89,7 +89,7 @@ exports.createPages = ({ graphql, actions }) => {
}
});
});*/
execSync("mkdir -p public/images && cp -R images/* public/images && cp robots.txt public/robots.txt && cp -R labs/* public/ && cp -R css public/");
execSync("mkdir -p public/images && cp -R images/* public/images && cp robots.txt public/robots.txt && cp -R labs/* public/ && cp -R css public/ && cp -R docs/* public/");
resolve();
});
});
Expand Down
32 changes: 32 additions & 0 deletions src/pages/docs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import React from 'react'
import Helmet from 'react-helmet'
import Layout from '../layout'
import config from '../../data/SiteConfig'
import styles from '../../css/app.css' // eslint-disable-line no-unused-vars

const DocsPage = () => (
<Layout>
<main>
<Helmet title={`Docs | ${config.siteTitle}`} />
<h1>Wingify Engineering Projects - Documentation</h1>
<h2>Documentation of our public projects</h2>
<br />
<div dangerouslySetInnerHTML={{
__html: `
<div class="projects">
<div class="project-box">
<a href="/vwo-fme-node-sdk/">
<img src="/images/[email protected]" width="160" height="160">
<h3>VWO FME Node SDK - Documentation</h3>
</a>
<p>Node.js SDK for VWO Feature Management and Experimentation</p>
<span class="pill">javascript</span>
</div>
</div>
` }} />
<br />
</main>
</Layout>
)

export default DocsPage

0 comments on commit 89aba32

Please sign in to comment.