prev ScrapboxAutoTrans Development Diary 2022-01-12

Iā€™m sure some of the features would be beneficial to others, but Iā€™m confused when I try to ā€œmeet my needsā€ and ā€œmeet the needs of othersā€ at the same time, so Iā€™m going to push forward with my use case first.

In other words, first change the routing part so that only your project is passed through the whitelist, and then use the URL patterns that you are now free to use without worrying about conflicts with other projects, for whatever you want to use.


relatedPages.links2hop[].linksLc The contents of the relatedPages.links1hop[].titleLc may not be included in the Specifically, if the page is a Xā†’Yā†’Z link and Y does not exist.

such

  • image


I want to rewrite the routing table, but I canā€™t find any configuration files at all? I thought so, but I heard itā€™s a style expressed by the arrangement of files.

The function with the default export is the view, and there are others that are exported with specific names, like getStaticProps.

I wonder how to make only a part of a static page dynamic, or how to make the menu only for the administrator.


Customized Top Page

  • image

Ah, the page title will appear, oh wellā€¦ The ability to hide code blocks with specific file names and the ability to render without titles would be nice


Itā€™s done.

image The original data is INDEX_FOR_VERCEL.


I have a feeling that a lot of interesting things could happen if multiple individual projects with different owners are merged, or if individual projects and open projects (projects that anyone can enter) are merged, but letā€™s not blur the lines and accomplish our own goals first and foremost!

My goal is to ā€œmerge a Japanese personal project whose owner is me with an English personal project whose owner is me.ā€

I was thinking of separating /en/{title} and /en/{title}.

  • Is it really necessary to sort readers by whether they are Japanese speakers or not?
  • How do you know if you are a Japanese speaker in the first place?

image

  • I feel like this is the right thing to do.

I donā€™t see any links showing up. image image

Should I make it from links1hop? fixed: https://github.com/nishio/scrapbox-reader/commit/efbcdf50e15e41a4e6fbd1303863a401f74d6a25


The 2hop link does not connect in these situations (gray is a page that does not exist). image


From a page in EN, click on a link to a page that is not in that project, and the JA page will now appear.


2hop links are not connected in these situations (gray is a page that does not exist). image

  • Then I thought, if you want JA to be connected, why donā€™t you just make a page with no content? I thought.

before

  • image do
  • image after
  • image
    • The double 2hop link is a simple bug.
  • image
    • So an empty page does not generate a 2hop linkā€¦ do
  • Iā€™ll try to make it inside.
  • image after
  • image
    • 2hop linkage occurred.
  • image
    • For pages that have both English and Japanese versions, both are displayed and the links between the pages are merged.

I made it clear which Scrapbox the content came from.

  • image
  • When machine translation is done, you can display something like ā€œThis is a machine translation of this page in Japaneseā€ here.

/villagepump/2022/01/13

  • The link feature I added to ScrapboxReader yesterday was buggy in a lot of ways.
  • Contents of multiple projects can now be bundled and displayed
  • In the case where there is a link from X to Y in project A, but page Y itself does not exist, and project B has page Y, the transition can be made without any particular problem (without being aware of the project boundary).
    • But now thereā€™s a bug where you have to reload after the transition.
    • You donā€™t seem to have a good understanding of Vercelā€™s cache area.

I was a little unsure whether to write the development diary in the well or here, but I thought it would be better to write it here without worrying about the volume, and then write a summary in the well at the end of the day.


This page is auto-translated from /nishio/ScrapboxAutoTrans開ē™ŗę—„čؘ2022-01-13 using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. Iā€™m very happy to spread my thought to non-Japanese readers.