-
Notifications
You must be signed in to change notification settings - Fork 1
Refactor and simplify styles and templates #33
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
Merged
Merged
Changes from 83 commits
Commits
Show all changes
85 commits
Select commit
Hold shift + click to select a range
90345c7
Update packages and use Script component
rogermparent 4b29760
Add requirements for nginx buildpack
rogermparent c483e9a
Add script that cleans all but necessary files after build
rogermparent 832b482
Fix(?) heroku script
rogermparent bdea96f
Remove script and just point nginx at path
rogermparent 6a8199d
Make main layout body expand to full height
rogermparent 60ce2cc
Add new homepage
rogermparent 1b871e0
Replace postcss media and mixins with tailwind equivalents
rogermparent ce582e5
Improve layout and remove postcss media in JS
rogermparent 9a0e02a
Merge branch 'main' of github.com:iterative/gatsby-theme-iterative in…
rogermparent 1b435a4
Remove color mod and custom properties, replace headerIsScrolled
rogermparent 3b77c18
Change how intersection observer is used to check for scrolled header
rogermparent 619d27d
Move docs left toggle menu one z-index higher so it shows on super
rogermparent 325ab87
Change layout to flex-based one that doesn't require advanced scroll …
rogermparent 3288c72
Fix eslint
rogermparent 2be0948
Add forced scroll height to homepage and use sentinel to collapse flex
rogermparent eda6379
Make slightly better homepage
rogermparent 12d0fa7
Upgrade again
rogermparent 7acb0d9
Merge branch 'main' of github.com:iterative/gatsby-theme-iterative in…
rogermparent 06758d2
Move plausible script outside of Helmet
rogermparent bc4e02c
Merge branch 'update-and-script-component' of github.com:iterative/ga…
rogermparent 8775d58
Remove unused import
rogermparent dcaea4e
Remove unused cssBase
rogermparent 778bbad
Merge branch 'main' of github.com:iterative/gatsby-theme-iterative in…
rogermparent 8b21219
Update packages
rogermparent dd76a5f
Merge branch 'main' into replace-postcss-with-tailwind
rogermparent 9432f15
Merge branch 'main' of github.com:iterative/gatsby-theme-iterative in…
rogermparent c16402b
Remove template wrapping system
rogermparent b0639f5
Merge branch 'main' of github.com:iterative/gatsby-theme-iterative in…
rogermparent 36307f6
Upgrade packages
rogermparent ec6720b
Merge in husky
rogermparent a827adb
Merge main and fix TS issues
rogermparent a68c8fe
Merge branch 'husky' of github.com:iterative/gatsby-theme-iterative i…
rogermparent 3196c9e
Upgrade packages
rogermparent f5ea149
Remove unused files
rogermparent 77a1583
Add rewrite rule for trailing slashes on the example server
rogermparent 6be8e4e
Try just disabling trailingSlash
rogermparent c2475fe
Fix root
rogermparent e2ebc43
Remove useRedirect
rogermparent 408ec88
Try another nginx rule
rogermparent b05289d
Use try_files
rogermparent a6302eb
Merge branch 'nginx-remove-trailing-slash' of github.com:iterative/ga…
rogermparent 7289d03
Merge branch 'main' into replace-postcss-with-tailwind
rogermparent cc0a10b
Fix link styling by using our custom link component
rogermparent 7e49c69
Update packages
rogermparent 3958406
Use @sentry/gatsby
rogermparent ef48d00
Remove DEV_SSR plugin
rogermparent 812c064
Use example URL and make max breakpoints unique placeholders
rogermparent 68ff095
Merge branch 'main' of github.com:iterative/gatsby-theme-iterative in…
rogermparent 13cc6ae
re-remove sentry
rogermparent 800471b
Use classNames in long tailwind utility classes
rogermparent e74fe81
Fix right sidebar top margin
rogermparent ab0e16b
Tweak styles, fixing external link icon
rogermparent 2e0023e
Make docs engine more configurable
rogermparent 9fa155b
Try one way of fixing the header
rogermparent 03952db
Refactor layout to fix some height, alert, and header bugs
rogermparent ef9d959
Fix scroll-past-the-end bug?
rogermparent 85fbca4
Revert to flex sticky header and add padding
rogermparent 2cbd073
Merge branch 'main' of github.com:iterative/gatsby-theme-iterative in…
rogermparent 885a542
Fix header social icons
rogermparent ee5ddd3
Fix scroll-past-header bug and refactor header links
rogermparent 57bd391
Add simpler method for hiding nav items
rogermparent c808e31
Ensure docs first h1 and right bar "content" header are aligned
rogermparent 2262d86
use scroll-margin-top for anchor nav
rogermparent c9c4c12
Add margin:auto to home container
rogermparent 5d2c21e
Refactor sidebar autoscrolling
rogermparent edd8118
Merge branch 'main' into replace-postcss-with-tailwind
rogermparent d94541a
Increase specificity of markdown list style rules
rogermparent 4232cfc
Fix sticky sidebars
rogermparent ec37a43
Fix mobile sidebar scrolling
rogermparent f7145dc
Use fixed header and sticky sidebar to fix issues
rogermparent bf5ca67
Retweak padding and width of sidebar
rogermparent e97fd89
Use max height so sidebar isn't necessarily size of screen
rogermparent b8cf6c3
Tweak layout so docs look better at all heights
rogermparent 2469818
Make right sidebar screen-height and sticky
rogermparent 527d9ac
Reposition sidebar back in line with header
rogermparent b922bff
Fix mobile sidebar and content by adding explicit width
rogermparent 808f2e5
Merge branch 'main' into replace-postcss-with-tailwind
rogermparent c0ed0eb
Fix args linker and make its targeted pages configurable
rogermparent 53b97cd
Shift 10px of margin to right panel so buttons block has its own spacing
rogermparent 24b3e99
Only add horizontal padding to markdown content after xs
rogermparent e461597
Merge branch 'main' into replace-postcss-with-tailwind
rogermparent e8eeeec
use pathname instead of slug
yathomasi 2b94f91
Merge branch 'main' into replace-postcss-with-tailwind
rogermparent b10183b
v0.2.0
rogermparent File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,39 @@ | ||
import React from 'react' | ||
import { Link } from 'gatsby' | ||
import cn from 'classnames' | ||
import { PageProps } from 'gatsby' | ||
import MainLayout from '@dvcorg/gatsby-theme-iterative/src/components/MainLayout' | ||
import Link from '@dvcorg/gatsby-theme-iterative/src/components/Link' | ||
|
||
export default function Home() { | ||
export default function Home({ location }: PageProps) { | ||
return ( | ||
<div> | ||
<h1>Gatsby Theme: Iterative</h1> | ||
<p> | ||
Welcome to the documentation and example website for Iterative's | ||
website engine! | ||
</p> | ||
<p> | ||
This theme is primarily related to adding a documentation engine, which | ||
you can see <Link to="/doc">here!</Link> | ||
</p> | ||
</div> | ||
<MainLayout location={location}> | ||
<div | ||
className={cn( | ||
'container', | ||
'mx-auto', | ||
'mt-14', | ||
'px-4', | ||
'py-14', | ||
'flex', | ||
'flex-col', | ||
'justify-center', | ||
'items-center' | ||
)} | ||
> | ||
<h1 className={cn('text-2xl', 'font-bold', 'text-center', 'mb-5')}> | ||
Gatsby Theme: Iterative | ||
</h1> | ||
<section className="text-lg"> | ||
<p> | ||
Welcome to the documentation and example website for | ||
Iterative's website engine! | ||
</p> | ||
<p> | ||
This theme is primarily related to adding a documentation engine, | ||
which you can see <Link href="/doc">here!</Link> | ||
</p> | ||
</section> | ||
</div> | ||
</MainLayout> | ||
) | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
const themeConfig = require('@dvcorg/gatsby-theme-iterative/tailwind.config') | ||
|
||
module.exports = { | ||
content: ['./src/**/*.{js,jsx,ts,tsx}'], | ||
...themeConfig, | ||
content: [...themeConfig.content, './src/**/*'], | ||
theme: { | ||
extend: {} | ||
}, | ||
plugins: [] | ||
...themeConfig.theme, | ||
fontFamily: { | ||
sans: ['Tahoma', 'Arial', 'sans-serif'], | ||
mono: ['Consolas', '"Liberation Mono"', 'Menlo', 'Courier', 'monospace'] | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
const path = require('path') | ||
module.exports = { | ||
glossaryPath: path.resolve('content', 'docs', 'user-guide', 'basic-concepts'), | ||
docsPath: path.resolve('content', 'docs'), | ||
glossaryInstanceName: 'iterative-glossary', | ||
docsInstanceName: 'iterative-docs', | ||
argsLinkerPath: ['command-reference', `ref`, 'cli-reference'] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
115 changes: 0 additions & 115 deletions
115
packages/gatsby-theme-iterative/config/postcss/mixins.js
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's all tailwind now. Well, that and autoprefixer.