🇰🇷 한국어 (Korean - South Korea)
🇰🇷 한국어 (Korean - South Korea)
모양
🇰🇷 한국어 (Korean - South Korea)
🇰🇷 한국어 (Korean - South Korea)
모양
이 페이지는 다음 버전에 맞게 작성되었습니다:
1.21.4
이 페이지는 다음 버전에 맞게 작성되었습니다:
1.21.4
Fabric 문서는 VitePress를 이용하여 다양한 Markdown 파일에서 정적 HTML을 생성합니다. 여기에서 VitePress가 지원하는 Markdown 확장 기능에 익숙해져야 합니다.
Fabric 문서에 기여할 수 있는 방법에는 크게 세 가지가 있습니다:
Fabric 문서의 모든 페이지는 스타일 가이드를 준수해야 합니다.
문서를 한국어 또는 다른 언어로 번역하고 싶다면, Fabric Crowdin에서 번역에 참여할 수 있습니다.
콘텐츠에 기여하는 것은 Fabric 문서에 기여하는 가장 기초적인 방법입니다.
모든 콘텐츠 기여는 다음 과정으로 진행되며, 각 단계는 GitHub Issues 라벨과 연결됩니다:
모든 콘텐츠는 스타일 가이드라인을 준수해야 합니다.
Fabric 문서는 GitHub에서 오픈 소스로 개발되므로, 아래 GitHub의 흐름을 따릅니다:
GitHub 흐름에 대한 자세한 내용은 여기에서 읽어볼 수 있습니다.
GitHub의 웹 UI에서 변경 사항을 커밋하거나, 로컬에서 웹사이트를 개발하고 미리 볼 수 있습니다.
로컬에서 개발하려면, 먼저 Git을 설치해야 합니다.
그런 다음, 리포지토리의 포크를 다음과 같이 복제합니다:
# make sure to replace "your-username" with your actual username
git clone https://github.com/your-username/fabric-docs.git
로컬에서 변경 사항을 미리 보려면, 먼저 Node.js 18 이상을 설치해야 합니다.
그런 다음, 아래 명령어를 실행하여 모든 종속성을 설치합니다:
npm install
개발 서버는 localhost:5173
에서 로컬 변경 사항을 미리 볼 수 있게 합니다. 코드가 변경되면 변경 사항이 자동으로 적용됩니다.
npm run dev
이제 브라우저에서 http://localhost:5173
을 방문해 웹사이트를 열고 탐색할 수 있습니다.
웹사이트를 빌드하면 모든 마크다운 파일이 정적 HTML로 컴파일되어 .vitepress/dist
에 저장됩니다.
npm run build
아래 명령어를 실행하면 .vitepress/dist
에 저장된 콘텐츠를 https://localhost:4173
에서 확인할 수 있습니다:
npm run preview
변경 사항에 만족한다면, 아래 명령어를 터미널에 한 줄씩 입력하여 변경 사항을 푸시
할 수 있습니다:
git add .
git commit -m "Description of your changes"
git push
변경 사항이 푸시되었다면, git push
의 출력에 있는 링크를 열어 끌어오기 요청을 만듭니다.
만약 문서 팀이 끌어오기 요청을 확장할 수 있다고 판단하면, 팀원이 끌어오기 요청에 stage:expansion 라벨과 함께 확장할 수 있는 내용을 댓글로 설명할 것입니다. 제안에 동의하신다면, 문서 내용을 확장하시면 됩니다.
끌어오기 요청을 확장하길 원치 않지만 이후에 다른 사람이 확장하길 바란다면, Issues 탭에 이슈를 생성하고 확장할 수 있는 내용을 설명하면 됩니다. 추후 문서팀은 끌어오기 요청에 help-wanted 라벨을 추가할 것입니다.
이 단계는 콘텐츠가 정확하고 Fabric의 문서 스타일 가이드를 준수하는지의 여부를 확인하는 단계이므로 가장 중요합니다.
이 단계에서는 다음과 같은 인증이 진행됩니다:
이 단계에서는 다음과 같은 일이 발생합니다:
markdownlint
를 사용하여 모든 Markdown 파일 린팅프레임워크는 웹사이트의 내부 구조를 나타내며, 이와 관련된 모든 끌어오기 요청은 framework 라벨이 추가됩니다.
프레임워크 끌어오기 요청은 Fabric Discord 또는 GitHub 이슈에서 문서 개발 팀과 모든 협의가 끝난 후에만 생성해야 합니다.
INFO
좌측 메뉴 또는 네비게이션 바의 구성 변경은 프레임워크 끌어오기 요청으로 간주하지 않습니다.
궁금한것이 있다면, Fabric Discord 또는 GitHub 토론을 통해 질문할 수 있습니다.
모든 원본 문서는 미국 문법의 영어로 작성되어야 합니다.
모든 페이지는 파일 최상단에 제목과 설명이 입력되어야 합니다.
Markdown 파일의 프론트매터에 있는 authors
에 GitHub 사용자 이름을 추가하는 것을 잊지 마세요! 이렇게 하면 저희는 당신에게 적당한 보상을 제공할 수 있습니다.
---
title: Title of the Page
description: This is the description of the page.
authors:
- your-username
---
각 제목은 해당 제목에 연결하는 데 쓰이는 앵커가 있어야 합니다:
## This Is a Heading {#this-is-a-heading}
앵커에는 반드시 소문자, 숫자 및 대시를 사용해야 합니다.
/reference
모드에 배치할 것 만약 코드를 포함하는 페이지를 만들거나 수정하는 경우, 코드를 리퍼런스 모드(리포지토리의 /reference
폴더에 위치)의 적절한 위치에 배치해야 합니다. 그런 다음, VitePress의 코드 스니펫 기능을 이용하여 코드를 임베드합니다.
예를 들어, 리퍼런스 모드에서 FabricDocsReference.java
파일의 15-21번째 줄을 강조하려면 다음과 같이 입력합니다:
<<< @/reference/latest/src/main/java/com/example/docs/FabricDocsReference.java{15-21}
package com.example.docs;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import net.minecraft.particle.SimpleParticleType;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.util.Identifier;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.particle.v1.FabricParticleTypes;
//#entrypoint
public class FabricDocsReference implements ModInitializer {
// This logger is used to write text to the console and the log file.
// It is considered best practice to use your mod id as the logger's name.
// That way, it's clear which mod wrote info, warnings, and errors.
public static final String MOD_ID = "fabric-docs-reference";
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
//#entrypoint
//#particle_register_main
// This DefaultParticleType gets called when you want to use your particle in code.
public static final SimpleParticleType SPARKLE_PARTICLE = FabricParticleTypes.simple();
//#particle_register_main
//#entrypoint
@Override
public void onInitialize() {
// This code runs as soon as Minecraft is in a mod-load-ready state.
// However, some things (like resources) may still be uninitialized.
// Proceed with mild caution.
LOGGER.info("Hello Fabric world!");
//#entrypoint
//#particle_register_main
// Register our custom particle type in the mod initializer.
Registry.register(Registries.PARTICLE_TYPE, Identifier.of(MOD_ID, "sparkle_particle"), SPARKLE_PARTICLE);
//#particle_register_main
//#entrypoint
}
}
만약 span 태그를 더 복잡하게 제어해야 하는 경우, markdown-it-vuepress-code-snippet-enhanced
의 트랜스클루전 기능을 이용할 수 있습니다.
예를 들어, 다음과 같이 입력하면 위의 파일에서 #entrypoint
태그로 표시된 섹션이 임베드됩니다:
@[code transcludeWith=#entrypoint](@/reference/latest/src/main/java/com/example/docs/FabricDocsReference.java)
public class FabricDocsReference implements ModInitializer {
// This logger is used to write text to the console and the log file.
// It is considered best practice to use your mod id as the logger's name.
// That way, it's clear which mod wrote info, warnings, and errors.
public static final String MOD_ID = "fabric-docs-reference";
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
@Override
public void onInitialize() {
// This code runs as soon as Minecraft is in a mod-load-ready state.
// However, some things (like resources) may still be uninitialized.
// Proceed with mild caution.
LOGGER.info("Hello Fabric world!");
}
}
새로운 섹션을 만들 때에는, .vitepress/sidebars
폴더에 i18n.mts
파일을 생성하여 새로운 메뉴를 생성해야 합니다.
만약 도움이 필요하시다면, Fabric Discord (영어)의 #docs
채널에 문의해 주세요.
새로운 페이지를 생성할 때도, .vitepress/sidebars
폴더에 연결을 추가해야 합니다.
역시나, 도움이 필요하시면 Fabric Discord의 #docs
채널에 질문하시면 됩니다.
/assets
에 배치할 것 모든 이미지는 /public/assets
폴더의 적당한 위치에 배치되어야 합니다.
이렇게 해야 버전 관리 시스템이 링크를 미리 처리하여 버전을 추가할 수 있습니다. 절대 링크를 사용하면, 버전 번호가 링크에 추가되지 않습니다.
또한 링크에 파일 확장자를 추가해서는 안 됩니다.
예를 들어서, /develop/index.md
에서 /players/installing-fabric.md
를 연결하려는 경우, 다음과 같이 연결해야 합니다:
This is a relative link!
[Page](../players/index)
This is an absolute link.
[Page](/players/index)
This relative link has the file extension.
[Page](../players/index.md)