Skip to content

Commit

Permalink
Merge pull request pieces-app#587 from jimbobbennett/feat/add-how-to
Browse files Browse the repository at this point in the history
Adding other Pieces components to the save a snippet how to guide
  • Loading branch information
jimbobbennett authored Oct 30, 2024
2 parents 777f4a8 + 55d514f commit 6c0fe56
Show file tree
Hide file tree
Showing 65 changed files with 410 additions and 61 deletions.
415 changes: 378 additions & 37 deletions docs/how-to-guides/save-a-snippet/index.mdx

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
7 changes: 5 additions & 2 deletions docs/how-to-guides/save-a-snippet/resources/helloworld.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
name = input("What is your name? ")
print("Hello, " + name + "!")
def say_hello():
name = input("What is your name? ")
print("Hello, " + name + "!")

say_hello()
44 changes: 22 additions & 22 deletions sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,28 @@ const sidebars: SidebarsConfig = {
},
]
},
{
// Guides
type: 'category',
label: '📚 How-To Guides',
items: [
{
type: 'doc',
id: 'how-to-guides/save-a-snippet/index',
label: 'Save a Code Snippet Using Pieces'
},
{
type: 'doc',
id: 'product-highlights-and-benefits/connecting-to-a-remote-pieces-os-instance',
label: 'Connecting VS Code to a Remote Pieces OS Instance',
},
{
type: 'doc',
id: 'product-highlights-and-benefits/sync-across-multiple-devices-using-github',
label: 'Sync Data Across Devices with GitHub',
},
]
},
{
type: 'category',
label: '💾 Pieces OS',
Expand Down Expand Up @@ -227,28 +249,6 @@ const sidebars: SidebarsConfig = {
}
]
},
{
// Guides
type: 'category',
label: '📚 Guides',
items: [
{
type: 'doc',
id: 'how-to-guides/save-a-snippet/index',
label: 'Save a Code Snippet Using Pieces Desktop App'
},
{
type: 'doc',
id: 'product-highlights-and-benefits/connecting-to-a-remote-pieces-os-instance',
label: 'Connecting to a Remote Pieces OS Instance',
},
{
type: 'doc',
id: 'product-highlights-and-benefits/sync-across-multiple-devices-using-github',
label: 'Sync Data Across Devices with GitHub',
},
]
},
{
type: 'category',
label: '🌱 Resources',
Expand Down
5 changes: 5 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -446,3 +446,8 @@ html[data-theme='dark'] .header-github-link:before {
margin-right: 5px;
animation: pulse 2s infinite;
}

[data-theme='light'] img[src$='#gh-dark-mode-only'],
[data-theme='dark'] img[src$='#gh-light-mode-only'] {
display: none;
}

0 comments on commit 6c0fe56

Please sign in to comment.