Skip to content

Commit

Permalink
wiki fix: return home button
Browse files Browse the repository at this point in the history
  • Loading branch information
osmancoskun committed Jun 27, 2024
1 parent 6bfa314 commit 3491cc5
Show file tree
Hide file tree
Showing 20 changed files with 64 additions and 29 deletions.
17 changes: 11 additions & 6 deletions src/lib/layout/navigation.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
let urls = $context.node.children.filter(
(url) => url.name != "index" && url.name != "default-layout"
);
console.log(urls);
</script>

<div class="drawer block md:hidden">
Expand Down Expand Up @@ -41,14 +40,16 @@
</div>
</div>
<ul
class="menu menu-xs h-screen bg-base-200 max-w-xs w-full border-right hidden md:flex"
class="menu menu-xs h-screen bg-base-200 max-w-xs w-full border-right hidden md:flex md:flex-col overflow-y-auto"
>
<li class="flex-1">
<div class="pardus-navigation">
{#each urls as url}
<WikiLink NodeURLs={url} />
<li class="">
<WikiLink NodeURLs={url} />
</li>
{/each}
</li>
<li>
</div>
<li class="mt-auto">
<a href="/" class="w-full flex justify-center btn btn-info">
<IconArrowBackUp class="w-5 h-5" />
Return Home
Expand All @@ -60,4 +61,8 @@
a {
font-size: 16px;
}
.pardus-navigation {
max-height: calc(100vh - 80px);
overflow-y: auto;
}
</style>
4 changes: 3 additions & 1 deletion src/routes/wiki/libpardus/aboutWindow.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Ptk Documentation: AboutWindow Widget
#### 2024.06.27 - [Osman Coskun](https://github.com/osmancoskun)

# Ptk Documentation: AboutWindow Widget

## AboutWindow Widget

Expand Down Expand Up @@ -51,3 +52,4 @@ about_window = Ptk.AboutWindow(

# Display the AboutWindow
about_window.show()
```
3 changes: 3 additions & 0 deletions src/routes/wiki/libpardus/app.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#### 2024.06.27 - [Osman Coskun](https://github.com/osmancoskun)

# Ptk Documentation: App Widget

## App Widget
Expand Down Expand Up @@ -29,3 +31,4 @@ app = Ptk.App(
width=800,
css_file_path="path/to/css/file.css",
)
```
4 changes: 3 additions & 1 deletion src/routes/wiki/libpardus/applicationWindow.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Ptk Documentation: ApplicationWindow Widget
#### 2024.06.27 - [Osman Coskun](https://github.com/osmancoskun)

# Ptk Documentation: ApplicationWindow Widget

## ApplicationWindow Widget

Expand Down Expand Up @@ -30,3 +31,4 @@ window = Ptk.ApplicationWindow(
height=600,
width=800,
)
```
5 changes: 2 additions & 3 deletions src/routes/wiki/libpardus/box.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#### 2024.06.27 - [Osman Coskun](https://github.com/osmancoskun)

# Ptk Documentation: Box Widget

## Box Widget
Expand Down Expand Up @@ -38,6 +40,3 @@ box = Ptk.Box(orientation="horizontal", homogeneous=True, spacing=10,children=[l


```



4 changes: 3 additions & 1 deletion src/routes/wiki/libpardus/button.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Ptk Documentation: Button Widget
#### 2024.06.27 - [Osman Coskun](https://github.com/osmancoskun)

# Ptk Documentation: Button Widget

## Button Widget

Expand All @@ -22,3 +23,4 @@ from libpardus import Ptk

# Create a Button instance with a label and an optional icon
button = Ptk.Button(label="Click Me", icon="my-icon",frame=True)
```
4 changes: 3 additions & 1 deletion src/routes/wiki/libpardus/flowbox.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Ptk Documentation: FlowBox Widget
#### 2024.06.27 - [Osman Coskun](https://github.com/osmancoskun)

# Ptk Documentation: FlowBox Widget

## FlowBox Widget

Expand Down Expand Up @@ -30,3 +31,4 @@ flow_box = Ptk.FlowBox(
min_children_per_line=1,
selection_mode="multiple",
)
```
4 changes: 3 additions & 1 deletion src/routes/wiki/libpardus/gtk_settings.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Ptk Documentation: Gtk and Adw Settings
#### 2024.06.27 - [Osman Coskun](https://github.com/osmancoskun)

# Ptk Documentation: Gtk and Adw Settings

## Gtk and Adw Settings

Expand Down Expand Up @@ -27,3 +28,4 @@ orientation_horizontal = settings["horizontal"]

# Use the fill alignment setting
alignment_fill = settings["fill"]
```
5 changes: 3 additions & 2 deletions src/routes/wiki/libpardus/image.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Ptk Documentation: Image Widget
#### 2024.06.27 - [Osman Coskun](https://github.com/osmancoskun)

# Ptk Documentation: Image Widget

## Image Widget

Expand All @@ -23,4 +24,4 @@ from libpardus import Ptk

# Create an Image instance with a specified image file and icon
image = Ptk.Image(file="path/to/image.png", icon="my-icon", icon_size=32, pixel_size=200)
```
```
2 changes: 2 additions & 0 deletions src/routes/wiki/libpardus/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#### 2024.06.27 - [Osman Coskun](https://github.com/osmancoskun)

# Introducing LibPardus: Your Python Gateway to the Pardus Universe

<img src="https://raw.githubusercontent.com/pardus/pardus.github.io/097d38fa01966c7a95164be9bd3e42dacfc0080f/src/lib/assets/logo.svg" alt="pardus" width="200"/>
Expand Down
5 changes: 3 additions & 2 deletions src/routes/wiki/libpardus/label.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Ptk Documentation: Label Widget
#### 2024.06.27 - [Osman Coskun](https://github.com/osmancoskun)

# Ptk Documentation: Label Widget

## Label Widget

Expand Down Expand Up @@ -29,4 +30,4 @@ label = Ptk.Label(label="Hello, Ptk!")
# Set markup
markup = "<span> <b> Hello Ptk </b> </span>"
label = Ptk.Label(markup=markup)
```
```
4 changes: 3 additions & 1 deletion src/routes/wiki/libpardus/listbox.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#### 2024.06.27 - [Osman Coskun](https://github.com/osmancoskun)

# Ptk Documentation: ListBox Widget

## ListBox Widget
Expand All @@ -19,4 +21,4 @@ from libpardus import Ptk

# Create a ListBox instance with separators between list items
listbox = Ptk.ListBox(show_separators=True)
```
```
4 changes: 3 additions & 1 deletion src/routes/wiki/libpardus/listboxRow.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#### 2024.06.27 - [Osman Coskun](https://github.com/osmancoskun)

# Ptk Documentation: ListBoxRow Widget

## ListBoxRow Widget
Expand All @@ -20,4 +22,4 @@ from libpardus import Ptk
# Create a ListBoxRow instance with a child widget
child_widget = Ptk.Label(label="Ptk ListBoxRow Child") # Replace this with the child widget you want to add
listbox_row = Ptk.ListBoxRow(child=child_widget)
```
```
4 changes: 2 additions & 2 deletions src/routes/wiki/libpardus/scale.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Ptk Documentation: Scale Widget

#### 2024.06.27 - [Osman Coskun](https://github.com/osmancoskun)# Ptk Documentation: Scale Widget

## Scale Widget

Expand Down Expand Up @@ -38,3 +37,4 @@ scale = Ptk.Scale(
round_digits=1,
orientation="horizontal",
)
```
5 changes: 3 additions & 2 deletions src/routes/wiki/libpardus/scrolledWindow.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Ptk Documentation: ScrolledWindow Widget
#### 2024.06.27 - [Osman Coskun](https://github.com/osmancoskun)

# Ptk Documentation: ScrolledWindow Widget

## ScrolledWindow Widget

Expand All @@ -21,4 +22,4 @@ from libpardus import Ptk
# Create a ScrolledWindow instance with a child widget
child_widget = ... # Replace this with the child widget you want to add
scrolled_window = Ptk.ScrolledWindow(child=child_widget)
```
```
3 changes: 3 additions & 0 deletions src/routes/wiki/libpardus/separator.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#### 2024.06.27 - [Osman Coskun](https://github.com/osmancoskun)

# Ptk Documentation: Separator Widget

## Separator Widget
Expand All @@ -22,3 +24,4 @@ separator_horizontal = Ptk.Separator(orientation="horizontal")

# Create a vertical separator
separator_vertical = Ptk.Separator(orientation="vertical")
```
3 changes: 3 additions & 0 deletions src/routes/wiki/libpardus/stack.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#### 2024.06.27 - [Osman Coskun](https://github.com/osmancoskun)

# Ptk Documentation: Stack Widget

## Stack Widget
Expand All @@ -17,3 +19,4 @@ from libpardus import Ptk

# Create a Stack instance
stack = Ptk.Stack()
```
4 changes: 3 additions & 1 deletion src/routes/wiki/libpardus/toggleButton.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Ptk Documentation: ToggleButton Widget
#### 2024.06.27 - [Osman Coskun](https://github.com/osmancoskun)

# Ptk Documentation: ToggleButton Widget

## ToggleButton Widget

Expand All @@ -21,3 +22,4 @@ from libpardus import Ptk

# Create a ToggleButton instance
toggle_button = Ptk.ToggleButton()
```
7 changes: 3 additions & 4 deletions src/routes/wiki/libpardus/utils.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#### 2024.06.27 - [Osman Coskun](https://github.com/osmancoskun)

# Ptk Documentation: Utils Functions

## Introduction
> This documentation focuses on the `utils` class, which contains various utility functions.

> This documentation focuses on the `utils` class, which contains various utility functions.
<br>

Expand Down Expand Up @@ -80,7 +82,6 @@ css_file_path = "/path/to/styles.css"
utils.load_css(css_file_path)
```


<br>

# Function: `gsettings_set`
Expand Down Expand Up @@ -110,7 +111,6 @@ result = utils.gsettings_set(schema_name, key_name, value_to_set)
print(result) # Output: True if the setting was successfully updated, otherwise False
```


<br>

# Function: `gsettings_get`
Expand All @@ -137,4 +137,3 @@ key_name = "setting_key"
value = utils.gsettings_get(schema_name, key_name)
print(value) # Output: The value stored in GSettings for the specified schema and key
```

2 changes: 2 additions & 0 deletions src/routes/wiki/libpardus/widget.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#### 2024.06.27 - [Osman Coskun](https://github.com/osmancoskun)

# Ptk Documentation: Widget

## Introduction
Expand Down

0 comments on commit 3491cc5

Please sign in to comment.