| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This is the new Docusaurus-based website for GeoDa, migrated from the original static HTML site. The site maintains the same visual design and content while providing a modern, maintainable codebase with full internationalization support.
See ADD_BLOG.md for details.
See ADD_ANNOUNCEMENT.md for details.
Install dependencies:
pnpm installStart the development server:
pnpm startOpen http://localhost:3000 in your browser.
geodacenter.github.io/ ├── src/ │ ├── components/ # React components │ │ ├── Hero.tsx # Main hero section │ │ ├── MainContent.tsx # Main content sections │ │ ├── Slideshow.tsx # Image slideshow component │ │ ├── Dependencies.tsx # Dependencies section │ │ ├── Footer.tsx # Footer section │ │ ├── LanguageSwitcher.tsx # Language switching component │ │ ├── StandaloneLanguageSwitcher.tsx # Standalone language switcher │ │ ├── GlobalLanguageSwitcher.tsx # Global language switcher injection │ │ ├── Root.tsx # Root component with locale provider │ │ └── *.module.css # CSS modules for components │ ├── pages/ # React pages │ │ ├── index.tsx # Homepage │ │ ├── download.tsx # Download page (redirect) │ │ ├── support.tsx # Support page (redirect) │ │ ├── cheatsheet.tsx # Cheat sheet page (redirect) │ │ ├── documentation.tsx # Documentation page (redirect) │ │ └── index-cn.tsx # Chinese homepage (redirect) │ ├── data/ # Content data files │ │ ├── *.json # English content (fallback) │ │ ├── zh-Hans/ # Chinese translations │ │ ├── es/ # Spanish translations │ │ └── de/ # German translations │ ├── utils/ # Utility functions │ │ ├── contentLoader.ts # Content loading with fallback │ │ ├── localeContext.tsx # Locale context provider │ │ ├── imagePath.ts # Image path utilities │ │ └── contentProcessor.ts # Content processing utilities │ ├── css/ │ │ └── custom.css # Global styles │ └── styles/ │ └── common.module.css # Common styles ├── blog/ # Blog posts │ ├── *.md # Blog markdown files │ ├── authors.yml # Blog authors │ └── tags.yml # Blog tags ├── docs/ # Documentation (Markdown) ├── static/ # Static assets │ ├── img/ # Images (copied from original) │ ├── data/ # Data files (CSV, JSON) │ ├── docs/ # Documentation files (PDF) │ ├── workbook/ # Workbook files │ ├── *.js # JavaScript files │ └── *.css # CSS files ├── docusaurus.config.ts # Docusaurus configuration ├── sidebars.ts # Documentation sidebar └── package.json # Dependencies and scripts
The site supports multiple languages with an enhanced fallback system:
If you want to edit the content for different pages, you can edit the content in the src/data/ folder.
For example, if you want to edit the content for the homepage, you can edit the indexContent.json file.
src/data/
├── indexContent.json # English (fallback)
├── siteCommon.json # English (fallback)
├── zh-Hans/
│ ├── indexContent.json # Chinese (partial)
│ └── siteCommon.json # Chinese (partial)
└── es/
├── indexContent.json # Spanish (partial)
└── siteCommon.json # Spanish (partial)
import { useLocalizedContent, useLocalizedContentFile, useLocalizedProperty } from '../utils/contentLoader';
import indexContent from '../data/indexContent.json';
// Get entire content with fallback
const content = useLocalizedContentFile('indexContent.json', indexContent);
// Get specific property with fallback
const title = useLocalizedProperty('mainContent.intro.title', indexContent, 'indexContent.json');The site maintains the original GeoDa design with:
Hero Section (Hero.tsx)
Main Content (MainContent.tsx)
Slideshow (Slideshow.tsx)
Language Switcher (LanguageSwitcher.tsx)
Footer (Footer.tsx)
Example:
import React from 'react';
import Layout from '@theme/Layout';
export default function NewPage(): React.JSX.Element {
return (
<Layout
title="Page Title"
description="Page description"
>
<div>
{/* Your content here */}
</div>
</Layout>
);
}Some pages currently redirect to the original HTML versions:
These will be migrated to full Docusaurus pages in future updates.
The site is configured for GitHub Pages deployment:
Build the site:
pnpm buildDeploy to GitHub Pages:
pnpm deployThe site will be available at: https://geodacenter.github.io/
This project is part of the GeoDa project and follows the same licensing terms.
For issues related to this Docusaurus site:
For GeoDa software support:
| Back | FazBrowse Home | New Git URL |