Skip to content

Commit 0c62054

Browse files
committed
Fix build, add mdx support
- 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
1 parent b457f23 commit 0c62054

21 files changed

+14188
-404
lines changed

LICENSE

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
MIT License
1+
# LICENSE
2+
3+
## cs-2340-team-website
24

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

24-
[twbs/examples](https://github.com/twbs/examples/)
25-
26+
## [Bootstrap Examples](https://github.com/twbs/examples/)
2627
MIT License
2728

2829
Copyright (c) 2022 Bootstrap
@@ -44,3 +45,8 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
4445
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
4546
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
4647
SOFTWARE.
48+
49+
## Dots world map
50+
[Dots world map](https://www.deviantart.com/snowfleikun/art/Dots-world-map-179891314)
51+
by [sNowFleikuN](https://www.deviantart.com/snowfleikun) is licensed under
52+
[CC BY 3.0](https://creativecommons.org/licenses/by/3.0/).

mdx-components.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import type { MDXComponents } from 'mdx/types'
2+
3+
export function useMDXComponents(components: MDXComponents): MDXComponents {
4+
return {
5+
...components,
6+
}
7+
}

next.config.js

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
1+
import createMDX from '@next/mdx'
2+
13
/** @type {import('next').NextConfig} */
24
const nextConfig = {
5+
// Configure `pageExtensions` to include markdown and MDX files
6+
pageExtensions: ['js', 'jsx', 'md', 'mdx', 'ts', 'tsx'],
7+
38
// Allow for static publishing on GitHub Pages at subdomain https://thatrobotdev.github.io/cs-2340-team-website/
49
basePath: "/cs-2340-team-website",
10+
511
/**
612
* Enable static export to allow for HTML/CSS/JS static assets hosting on GitHub Pages
713
* @see https://nextjs.org/docs/pages/building-your-application/deploying/static-exports
814
*/
915
output: "export",
16+
1017
/**
1118
* Disable server-based image optimization. Next.js does not support
1219
* dynamic features with static exports.
@@ -16,7 +23,24 @@ const nextConfig = {
1623
images: {
1724
unoptimized: true,
1825
},
26+
1927
reactStrictMode: true,
28+
29+
webpack(config, { isServer }) {
30+
// Allow importing of `.txt` files using raw-loader
31+
config.module.rules.push({
32+
test: /LICENSE$/, // Specify the file type to match
33+
use: 'raw-loader', // Use raw-loader to load the file
34+
});
35+
36+
// Return the modified config
37+
return config;
38+
},
2039
}
2140

22-
module.exports = nextConfig
41+
const withMDX = createMDX({
42+
// Add markdown plugins here if needed
43+
})
44+
45+
// Merge MDX config with Next.js config and export
46+
export default withMDX(nextConfig)

0 commit comments

Comments
 (0)