Website for modification "STALKER on UE" https://s2ue.org/
Go to file
PSI cd43b4bdea
Update `FUNDING.yml`
2024-03-13 05:04:43 +07:00
.github Update `FUNDING.yml` 2024-03-13 05:04:43 +07:00
.vscode VS Code 2023-12-09 22:44:41 +07:00
components Fix `figcaption` opacity 2024-03-13 00:12:18 +07:00
data/downloads Update urls 2024-02-26 06:27:16 +07:00
pages Upgrade GA 2024-02-12 18:29:59 +07:00
public Update all packages 2024-03-12 23:41:14 +07:00
styles Add `custom css img` && edit `table` styles 2024-02-08 05:34:59 +07:00
translations Refactoring Code 2023-09-07 15:34:51 +07:00
utils Add `web-vitals` 2024-02-08 05:16:41 +07:00
.editorconfig first commit 2023-07-01 01:48:57 +07:00
.eslintignore Add `og` on ESLint ignore 2023-08-11 21:57:48 +07:00
.eslintrc Add ESLint 2023-08-11 21:53:49 +07:00
.gitattributes Upd `linguist-language` 2023-07-26 06:22:05 +07:00
.gitignore Update `gitignore` 2023-09-07 15:20:15 +07:00
.npmrc auto-install-peers = `true` 2023-07-26 01:22:31 +07:00
.prettierignore first commit 2023-07-01 01:48:57 +07:00
CODE_OF_CONDUCT.md Add `CODE_OF_CONDUCT` 2024-03-13 04:48:58 +07:00
LICENSE Update `LICENSE` 2024-03-13 04:45:43 +07:00
README.md Add Modals & Fix Bugs 2023-07-30 11:39:27 +07:00
SECURITY.md Add `SECURITY.md` 2024-03-13 04:51:11 +07:00
components.d.ts Refactoring Component Names 2023-09-07 21:01:22 +07:00
global.d.ts Add `web-vitals` 2024-02-08 05:16:41 +07:00
jsconfig.json Refactoring Code 2023-09-07 15:34:51 +07:00
middleware.ts Refactoring Code 2023-09-07 15:34:51 +07:00
next-env.d.ts Add TS support 2023-07-19 09:47:48 +07:00
next-sitemap.config.js Refactoring Code 2023-09-07 15:34:51 +07:00
next.config.mjs Replaced slider 2024-03-12 06:02:08 +07:00
nextra.d.ts Refactoring Code 2023-09-07 15:34:51 +07:00
package.json Fix `figcaption` opacity 2024-03-13 00:12:18 +07:00
pnpm-lock.yaml Fix `figcaption` opacity 2024-03-13 00:12:18 +07:00
postcss.config.js Refactoring Code 2023-09-07 15:34:51 +07:00
tailwind.config.js Refactoring Code 2023-09-07 15:34:51 +07:00
theme.config.tsx Fix `hrefLang` 2024-03-12 06:31:00 +07:00
tsconfig.json Refactoring Code 2023-09-07 15:34:51 +07:00
vercel.json Remove silent mode & add main deploy 2023-11-06 06:22:42 +07:00

README.md

STALKER on UE Docs

Website for modification "STALKER on UE"

pnpm install
pnpm dev

And visit localhost:3000 to preview your changes.

Getting Started

File Organization

First, the system collects all your Markdown files and configurations from the pages directory, and then generates the "page map information" of your website to display elements such as the navigation panel and sidebar below:

File Structure

The file structure has the following format: {category}/{file-name}.{language}.mdx.

Available languages:

  • ru - Russian
  • en - English
  • uk - Ukrainian

Default Behavior

By default, the site map contains all .md and .mdx file names and the directory structure, sorted alphabetically. The system will then use the title package to obtain formatted page names from the file names.

For example, if you have the following structure:

pages/
  contact.md
  index.mdx
  about/
    legal.md
    index.mdx

The resolved site map would look like this (note that all names have been sorted alphabetically):

[
  {
    "name": "About",
    "children": [{ "name": "Index" }, { "name": "Legal" }]
  },
  { "name": "Contact" },
  { "name": "Index" }
]

And the global site map will be merged with each Documentation page. Then, the configured theme will display the actual user interface using this site map.

_meta.json Configuration

Very often, it is required to customize the title of each page instead of simply using the file name. For example, having a page with the title "Index" doesn't make sense; instead, it's better to use the title "Home".

This is where the _meta.json file comes in handy. You can place an _meta.json file in each directory, and it will be used to override the default configuration for each page:

pages/
  _meta.json
  contact.md
  index.mdx
  about/
    _meta.json
    legal.md
    index.mdx

And you can place the following code in the pages/_meta.json file:

{
  "index": "My Homepage",
  "contact": "Contact Us",
  "about": "About Us"
}

It informs the system about the order of each page and the correct title. Additionally, you can do this with title and add other configurations to it:

{
  "index": "My Homepage",
  "contact": "Contact Us",
  "about": {
    "title": "About Us",
    "...additional configurations...": "..."
  }
}

Additional configurations are passed to the theme as extra information. For more information, refer to the relevant pages.