melissawm / sphinx-tags

A tiny Sphinx extension that implements blog-style tags for documentation.
https://sphinx-tags.readthedocs.io/en/latest/
MIT License
44 stars 11 forks source link

Source Files in Linked Directories #28

Closed kassbohm closed 1 year ago

kassbohm commented 2 years ago

see comment below for my point.

kassbohm commented 2 years ago

see comment below for my point.

kassbohm commented 2 years ago

Hi Melissa (if that's your name).

I attached an very small example of what I think is unintended behaviour:

Expectations:

Observations:

Tags.zip

melissawm commented 2 years ago

Hi @kassbohm - thanks for opening the issue. You are right - let me try and investigate what is happening here, but looks like a bug.

kassbohm commented 2 years ago

Thanks for getting back. Take your time.

kassbohm commented 2 years ago

Hi @melissawm.

Should I use a workaround? Or will you adress this issue any time soon?

melissawm commented 1 year ago

Hi @kassbohm - really sorry for the delay! Can you still reproduce this? I can't seem to anymore - I see tag2 being counted twice in _tagsindex.html and 2 pages listed under tag2.html. Let me know what you can observe!

kassbohm commented 1 year ago

Hello,

There is a directory called LinkedDir.

There is a difference between:

1) using this directory as is: source/LinkedDir

Dir_as_Dir

2) using only a link to this directory, with the actual directory residing elsewhere, e.g.: source/LinkedDir -> ../../LinkedDir/

Dir_as_Link

Using 1) There are two files found with "tag2". Using 2) There is only one file found with "tag2".

melissawm commented 1 year ago

Got it! Let me try and see what's up. Thanks again!

kassbohm commented 1 year ago

Any news on this?

kassbohm commented 1 year ago

This solves the example I provided above. But I am afraid it does not solve the general problem with linked directories...

I have attached a new Tags.zip, which again leads to incorrect behaviour.

Tags.zip

melissawm commented 1 year ago

Thanks - I list I have a clue now, will try to investigate!

kassbohm commented 1 year ago

Ok, great! :-)