Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ junit_family=xunit2
# the src/ directory by removing
# --pyargs and nameless from the options here.
testpaths =
src/
src/
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from setuptools import find_packages, setup
from setuptools.command.install import install

VERSION = "3.0.1"
VERSION = "3.0.2"
README_PATH = "docs/README.md"

test_requirements = ["pytest"] # "behave", "behave-classy",
Expand Down
6 changes: 3 additions & 3 deletions src/test/core/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ def test_update_string_by_stringindexes():

long_content = (
"## Harici Bağlantılar\n\n"
"- [Python ~ YEmreAk]"
"* [Python ~ YEmreAk]"
"(https://python.yemreak.com)\n\n"
"<!-- Autogenerated with YPackage Integration tool -->\n\n"
"- [YEmreAk]"
"* [YEmreAk]"
"(https://yemreak.com)\n\n"
"<!-- Autogenerated with YPackage Integration tool -->\n"
)
Expand All @@ -18,7 +18,7 @@ def test_update_string_by_stringindexes():

long_result = (
"## Harici Bağlantılar\n\n"
"- [Python ~ YEmreAk]"
"* [Python ~ YEmreAk]"
"(https://python.yemreak.com)\n\n"
"<!-- Autogenerated with YPackage Integration tool -->\n\n"
"YPackage\n\n<!-- Autogenerated with YPackage Integration tool -->\n"
Expand Down
22 changes: 11 additions & 11 deletions src/test/core/test_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ def inner(*args, **kwargs):
"# 📅 Vize \| CNaT\n"
"<!--Index-->\n"
"\n"
"- [Chapter_1_V7.01.pdf](Chapter_1_V7.01.pdf)\n"
"- [Chapter_2_V7.01.pdf](Chapter_2_V7.01.pdf)\n"
"- [Chapter_3_V7.01.pdf](Chapter_3_V7.01.pdf)\n"
"- [Chapter_4_V7.01.pdf](Chapter_4_V7.01.pdf)\n"
"* [Chapter_1_V7.01.pdf](Chapter_1_V7.01.pdf)\n"
"* [Chapter_2_V7.01.pdf](Chapter_2_V7.01.pdf)\n"
"* [Chapter_3_V7.01.pdf](Chapter_3_V7.01.pdf)\n"
"* [Chapter_4_V7.01.pdf](Chapter_4_V7.01.pdf)\n"
"\n"
"<!--Index-->\n"
"## 🕐 Temp\n"
Expand Down Expand Up @@ -158,9 +158,9 @@ def test_update_title_of_markdownfile():
def test_generate_nonmarkdown_fileliststring():
content = generate_nonmarkdown_fileliststring(TEMP_DIRPATH)
assert content == (
"- [emre.py](emre.py)\n"
"- [yunus.py](yunus.py)\n"
"- [yunuss.pdf](yunuss.pdf)"
"* [emre.py](emre.py)\n"
"* [yunus.py](yunus.py)\n"
"* [yunuss.pdf](yunuss.pdf)"
)


Expand All @@ -176,10 +176,10 @@ def test_map_links_in_markdownfile():
"# 📅 Vize \| CNaT\n"
"<!--Index-->\n"
"\n"
"- [aChapter_1_V7.01.pdf](bChapter_1_V7.01.pdf)\n"
"- [aChapter_2_V7.01.pdf](bChapter_2_V7.01.pdf)\n"
"- [aChapter_3_V7.01.pdf](bChapter_3_V7.01.pdf)\n"
"- [aChapter_4_V7.01.pdf](bChapter_4_V7.01.pdf)\n"
"* [aChapter_1_V7.01.pdf](bChapter_1_V7.01.pdf)\n"
"* [aChapter_2_V7.01.pdf](bChapter_2_V7.01.pdf)\n"
"* [aChapter_3_V7.01.pdf](bChapter_3_V7.01.pdf)\n"
"* [aChapter_4_V7.01.pdf](bChapter_4_V7.01.pdf)\n"
"\n"
"<!--Index-->\n"
"## 🕐 Temp\n"
Expand Down
12 changes: 6 additions & 6 deletions src/ypackage/core/gitbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def generate_filelink_string(
single_line=True, \
is_list=True, \
)
'- [📦 YPackage](README.md)\\n'
'* [📦 YPackage](README.md)\\n'
>>> generate_filelink_string( \
Path('./docs/README.md'), \
github_link = True \
Expand Down Expand Up @@ -245,7 +245,7 @@ def generate_summary_fileliststring(projectpath: Path, ignore: List[str] = []) -
def generate_summary_filelinks_string(
projectpath: Path,
dirpath: Path,
indent_level=1,
indent_level: int = 0,
ignore: List[str] = []
) -> str:
content = ""
Expand All @@ -254,7 +254,7 @@ def generate_summary_filelinks_string(
content += generate_filelink_string(
readme_path,
root=projectpath,
indent_level=indent_level,
indent_level=indent_level - 1 if indent_level else 0,
single_line=True,
is_list=True
)
Expand All @@ -268,7 +268,7 @@ def generate_summary_filelinks_string(
content += generate_filelink_string(
mpath,
root=projectpath,
indent_level=indent_level + 1,
indent_level=indent_level,
single_line=True,
is_list=True
)
Expand Down Expand Up @@ -311,11 +311,11 @@ def generate_summary_for_project(

Arguments:
projectpath {Path} -- Proje dizini yolu
index_string {str} -- [description]
index_string {str} -* [description]
ignore {List[str]} -- Görmezden gelinecek dizin isimleri

Keyword Arguments:
must_inserted {bool} -- [description] (default: {False})
must_inserted {bool} -* [description] (default: {False})

Returns:
{bool} -- Değişim varsa True
Expand Down
4 changes: 2 additions & 2 deletions src/ypackage/core/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def generate_linkstring(
is_list = True, \
single_line = True \
)
' - [YPackage](https://ypackage.yemreak.com)\\n'
' * [YPackage](https://ypackage.yemreak.com)\\n'

"""
return Link(name, path).to_str(
Expand Down Expand Up @@ -445,7 +445,7 @@ def generate_filelinkstring(
is_list = True, \
single_line = True \
)
' - [YPackage](markdown.py)\\n'
' * [YPackage](markdown.py)\\n'
"""
if not name:
name = generate_name_for_markdownfile(filepath)
Expand Down
2 changes: 1 addition & 1 deletion src/ypackage/model/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def to_str(
single_line: Optional[bool] = None
) -> str:
string = indent.to_str() if indent else ""
string += "- " if is_list else ""
string += "* " if is_list else ""
string += self.__str__()
string += "\n" if single_line else ""

Expand Down