Repository navigation
원문과 번역의 언어별 문서 루트 설정 지원 - #25
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
원문이나 번역이 별도 저장소에 있을 때
DOCS_{LANGCODE}_ROOT로 그 언어의 문서 디렉터리를 지정할 수 있습니다. 예를 들어DOCS_KO_ROOT="$HOME/website-ko/content"이면 원문의guide/setup.md와 한국어 디렉터리의guide/setup.md를 짝지어 검색합니다.상대경로는
TGREP_DOCS_DIR기준이고, 지정하지 않은 언어는 기존TGREP_DOCS_DIR/<lang>을 사용합니다. 설정 파일과 환경변수 양쪽에서 지정할 수 있으며, 비어 있지 않은 환경변수가 우선합니다. 파일 탐색은 각 언어가 속한 저장소의 Git 제외 규칙을 따릅니다.검증
DOCS_PT_BR_ROOT), 개별 저장소의 제외 규칙을 확인했습니다.F1한국어 비교,F2일본어 비교,Esc복귀,Enter편집을 확인했습니다.go vet ./...,go test -race ./...,go build -o bin/tgrep ./cmd/tgrep통과.Closes #14