pedronauck/docz

Do you want to work on this issue?

You can request for a bounty in order to promote it!

Route is wrong When the language of md filename is not English #480

cryzzchen posted onGitHub

Bug Report

Describe the bug

Route is wrong When the language of md filename is not English.

Demo: https://github.com/cryzzchen/doczdemo/blob/master/.docz/app/db.json#L31


@issuehuntfest has funded $35.00 to this issue. See it on IssueHunt

posted by IssueHuntBot over 6 years ago

@sindresorhus/slugify will not support Chinese characters. https://github.com/sindresorhus/slugify/issues/8#issuecomment-396102476 -- Can i config the route of a filepath by configuration?Rather than font matter. @pedronauck

posted by cryzzchen over 6 years ago

can you use document settings?

posted by yaodingyd over 6 years ago

@cryzzchen can you help me reproduce ?

posted by gurrrung about 6 years ago

@yaodingyd not support

posted by cryzzchen about 6 years ago

@gurungrahul2 I don't know what you mean

posted by cryzzchen about 6 years ago

I wrote a remark plugin to update the front meta of md to resolve the problem.

posted by cryzzchen about 6 years ago

@cryzzchen I mean document settings where you can customize your route like:

---
name: My Document
route: /custom-route
menu: Documents
---
posted by yaodingyd about 6 years ago

@yaodingyd I'm including docz in my toolkit which used by many others. Some docs was started by gitbook. I want to make the migrate is easy.

posted by cryzzchen about 6 years ago

This issue has bounty, but closed. Does that mean that I can still submit my PR and receive this bounty?

Anyhow, I would like to ask - what is the expected strategy which should be used for the filenames which can not be converted to slug?

I can suggest one, for example, if slug can not be retrieved - generate random route, for example using https://github.com/ai/nanoid . If that's ok - I can try to integrate that functionality into the docz.

posted by PavelPolyakov about 6 years ago

@rororofff has funded $2.00 to this issue.


posted by IssueHuntBot almost 6 years ago

Fund this Issue

$37.00
Funded
Only logged in users can fund an issue

Pull requests

Recent activities

rororofff funded 2.00 for pedronauck/docz# 480
almost 6 years ago
issuehuntfest funded 35.00 for pedronauck/docz# 480
over 6 years ago