-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
72f2ef9
commit 6f743cb
Showing
7 changed files
with
73 additions
and
38 deletions.
There are no files selected for viewing
This file contains 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,34 +1,5 @@ | ||
# nextjs-template | ||
This is designed with a similar idea to [Tailwind CSS Typography](https://github.com/tailwindlabs/tailwindcss-typography), but following the design proposed by [Latex.css](https://latex.now.sh/). | ||
|
||
This is a template repository for when I want to produce a something using Next.js | ||
To use it, add `latex-style` to a HTML element, in the same way as you would use `prose` with Tailwind CSS Typography. | ||
|
||
## License | ||
|
||
This is licensed under MIT, one of the best licenses for open source software. Change the `LICENSE` file if a different license is more suitable. | ||
|
||
## Tailwind CSS | ||
|
||
This does not need any additional configuration, but this site uses [Tailwind CSS](https://tailwindcss.com/), this makes styling elements simpler. | ||
|
||
Additional styles can be configured in `/styles/index.css` and Tailwind Plugins can be installed in `tailwind.config.js` | ||
|
||
## Code formatting | ||
|
||
Again this doesn't need any additional configuration, but can be configured if you wish, for code formatting and linting I have | ||
|
||
- `.eslintrc.js` | ||
- `.prettierrc.json` | ||
|
||
These configure ESLint and Prettier respectively, ensure that whatever configuration you choose doesn't cause conflicts, such as using tabs in ESLint and spaces in prettier. | ||
|
||
## Dependabot | ||
|
||
Dependabot is enabled on this repository, so you will receive pull requests whenever there is an update to a package, this ensures you have the latest features and reduces the chance of a security vulnerability. | ||
|
||
## DeepSource | ||
|
||
Deepsource checks your code for bugs, anti patterns, performance issues and security flaws and is automatically set up on this repository | ||
|
||
## Vercel Hosting | ||
|
||
This site will use hosting from Vercel. This can be configured in `vercel.json` a notable key to change is `alias`, this will allow for setting a custom domain | ||
You can see an example of how this works [here](https://latex-tailwind.vercel.app/) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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,14 @@ | ||
import "../styles/index.css"; | ||
|
||
import Head from "next/head"; | ||
function MyApp({ Component, pageProps }) { | ||
return <Component {...pageProps} />; | ||
return ( | ||
<> | ||
<Head> | ||
<title>LaTeX Tailwind</title> | ||
</Head> | ||
<Component {...pageProps} /> | ||
</> | ||
); | ||
} | ||
|
||
export default MyApp; |
This file contains 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 |
---|---|---|
|
@@ -5,6 +5,7 @@ class MyDocument extends Document { | |
return ( | ||
<Html lang="en"> | ||
<Head /> | ||
|
||
<body> | ||
<Main /> | ||
<NextScript /> | ||
|
This file contains 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 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