Skip to content

Commit

Permalink
Fix build, add mdx support
Browse files Browse the repository at this point in the history
- Fix build
- Add clarification to LICENSE file
- Add support for .mdx files
- Allow import of raw text files (for importing of raw LICENSE file into licenses page)
- Downgrade typescript version to version supported by linter
- Replace non-free dotted world illustration with free svg
- Add back icons to avatar cards
- Add Licenses page
- Convert projects, moviesstore pages to MDX
  • Loading branch information
thatrobotdev committed Feb 9, 2025
1 parent d868229 commit 85e31b0
Show file tree
Hide file tree
Showing 20 changed files with 14,188 additions and 404 deletions.
12 changes: 9 additions & 3 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
MIT License
# LICENSE

## cs-2340-team-website

Copyright (c) 2025 Aryamann Sheoran, James Kerrane, Michael Wittland Jr.,
Palash Patel, Shane Hanley
Expand All @@ -21,8 +23,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

[twbs/examples](https://github.com/twbs/examples/)

## [Bootstrap Examples](https://github.com/twbs/examples/)
MIT License

Copyright (c) 2022 Bootstrap
Expand All @@ -44,3 +45,8 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

## Dots world map
[Dots world map](https://www.deviantart.com/snowfleikun/art/Dots-world-map-179891314)
by [sNowFleikuN](https://www.deviantart.com/snowfleikun) is licensed under
[CC BY 3.0](https://creativecommons.org/licenses/by/3.0/).
7 changes: 7 additions & 0 deletions mdx-components.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { MDXComponents } from 'mdx/types'

export function useMDXComponents(components: MDXComponents): MDXComponents {
return {
...components,
}
}
26 changes: 25 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import createMDX from '@next/mdx'

/** @type {import('next').NextConfig} */
const nextConfig = {
// Configure `pageExtensions` to include markdown and MDX files
pageExtensions: ['js', 'jsx', 'md', 'mdx', 'ts', 'tsx'],

// Allow for static publishing on GitHub Pages at subdomain https://thatrobotdev.github.io/cs-2340-team-website/
basePath: "/cs-2340-team-website",

/**
* Enable static export to allow for HTML/CSS/JS static assets hosting on GitHub Pages
* @see https://nextjs.org/docs/pages/building-your-application/deploying/static-exports
*/
output: "export",

/**
* Disable server-based image optimization. Next.js does not support
* dynamic features with static exports.
Expand All @@ -16,7 +23,24 @@ const nextConfig = {
images: {
unoptimized: true,
},

reactStrictMode: true,

webpack(config, { isServer }) {
// Allow importing of `.txt` files using raw-loader
config.module.rules.push({
test: /LICENSE$/, // Specify the file type to match
use: 'raw-loader', // Use raw-loader to load the file
});

// Return the modified config
return config;
},
}

module.exports = nextConfig
const withMDX = createMDX({
// Add markdown plugins here if needed
})

// Merge MDX config with Next.js config and export
export default withMDX(nextConfig)
Loading

0 comments on commit 85e31b0

Please sign in to comment.