Remove md guide
This commit is contained in:
@@ -1,62 +0,0 @@
|
|||||||
# Markdown Guide
|
|
||||||
|
|
||||||
This blog uses CommonMark for rendering markdown content. Here's a quick guide to the syntax.
|
|
||||||
|
|
||||||
## Headers
|
|
||||||
|
|
||||||
Use `#` for headers:
|
|
||||||
|
|
||||||
```markdown
|
|
||||||
# H1
|
|
||||||
## H2
|
|
||||||
### H3
|
|
||||||
```
|
|
||||||
|
|
||||||
## Emphasis
|
|
||||||
|
|
||||||
- *Italic* with `*asterisks*`
|
|
||||||
- **Bold** with `**double asterisks**`
|
|
||||||
- ~~Strikethrough~~ with `~~tildes~~`
|
|
||||||
|
|
||||||
## Links and Images
|
|
||||||
|
|
||||||
Links: `[Link text](https://example.com)`
|
|
||||||
|
|
||||||
Images: ``
|
|
||||||
|
|
||||||
## Blockquotes
|
|
||||||
|
|
||||||
> This is a blockquote.
|
|
||||||
> It can span multiple lines.
|
|
||||||
|
|
||||||
## Code
|
|
||||||
|
|
||||||
Inline `code` with backticks.
|
|
||||||
|
|
||||||
Code blocks with triple backticks:
|
|
||||||
|
|
||||||
```python
|
|
||||||
def hello():
|
|
||||||
print("Hello, world!")
|
|
||||||
```
|
|
||||||
|
|
||||||
## Tables
|
|
||||||
|
|
||||||
| Column 1 | Column 2 | Column 3 |
|
|
||||||
|----------|----------|----------|
|
|
||||||
| Data 1 | Data 2 | Data 3 |
|
|
||||||
| More | Data | Here |
|
|
||||||
|
|
||||||
## Task Lists
|
|
||||||
|
|
||||||
- [x] Completed task
|
|
||||||
- [ ] Incomplete task
|
|
||||||
- [ ] Another task
|
|
||||||
|
|
||||||
## Horizontal Rule
|
|
||||||
|
|
||||||
Use three or more hyphens:
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
That's the basics of Markdown!
|
|
||||||
@@ -1,8 +1,11 @@
|
|||||||
|
-- Prevent cargo compiler from being loaded
|
||||||
|
vim.g.current_compiler = 'custom'
|
||||||
|
|
||||||
-- Load persistent configuration from .workspace.lua
|
-- Load persistent configuration from .workspace.lua
|
||||||
local ws_file = "./.nvim.workspace.lua"
|
local ws_file = "./.nvim.workspace.lua"
|
||||||
local loaded, workspace = pcall(dofile, ws_file)
|
local loaded, workspace = pcall(dofile, ws_file)
|
||||||
if not loaded then
|
if not loaded then
|
||||||
workspace = { args = { }, build_type = "debug", binary = "blog-server" }
|
workspace = { args = {}, build_type = "debug", binary = "blog-server" }
|
||||||
end
|
end
|
||||||
|
|
||||||
local build_folder
|
local build_folder
|
||||||
@@ -16,27 +19,37 @@ local function updateBuildEnv()
|
|||||||
|
|
||||||
-- The run (F6) arguments
|
-- The run (F6) arguments
|
||||||
vim.opt.makeprg = "cargo build"
|
vim.opt.makeprg = "cargo build"
|
||||||
|
vim.g.cargo_makeprg_params = 'build'
|
||||||
if workspace.build_type == "release" then
|
if workspace.build_type == "release" then
|
||||||
vim.opt.makeprg = vim.opt.makeprg .. " --release"
|
vim.opt.makeprg = vim.opt.makeprg .. " --release"
|
||||||
|
vim.g.cargo_makeprg_params = vim.g.cargo_makeprg_params .. " --release"
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Rust compiler error format
|
-- Rust compiler error format
|
||||||
vim.opt.errorformat = {
|
vim.opt.errorformat = {
|
||||||
-- Main error/warning line with file:line:col format
|
-- Main error/warning line with file:line:col format
|
||||||
'%E%>error%m,' .. -- Start of error block
|
'%E%>error%m,' .. -- Start of error block
|
||||||
'%W%>warning: %m,' .. -- Start of warning block
|
'%W%>warning: %m,' .. -- Start of warning block
|
||||||
'%-G%>help: %m,' .. -- Ignore help lines
|
'%-G%>help: %m,' .. -- Ignore help lines
|
||||||
'%-G%>note: %m,' .. -- Ignore note lines
|
'%-G%>note: %m,' .. -- Ignore note lines
|
||||||
'%C%> --> %f:%l:%c,' .. -- Continuation: file location
|
'%C%> --> %f:%l:%c,' .. -- Continuation: file location
|
||||||
'%Z%>%p^%m,' .. -- End: column pointer (^^^)
|
'%Z%>%p^%m,' .. -- End: column pointer (^^^)
|
||||||
'%C%>%s%#|%.%#,' .. -- Continuation: context lines with |
|
'%C%>%s%#|%.%#,' .. -- Continuation: context lines with |
|
||||||
'%C%>%s%#%m,' .. -- Continuation: other context
|
'%C%>%s%#%m,' .. -- Continuation: other context
|
||||||
'%-G%.%#' -- Ignore everything else
|
'%-G%.%#' -- Ignore everything else
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
updateBuildEnv()
|
updateBuildEnv()
|
||||||
|
|
||||||
|
-- Prevent Vim's built-in rust ftplugin from loading the cargo compiler
|
||||||
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
|
pattern = "rust",
|
||||||
|
callback = function()
|
||||||
|
vim.b.current_compiler = 'custom'
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
local function writeWorkspace()
|
local function writeWorkspace()
|
||||||
-- A very minimal serializer for workspace configuration
|
-- A very minimal serializer for workspace configuration
|
||||||
local s = { l = "", ls = {}, i = "" }
|
local s = { l = "", ls = {}, i = "" }
|
||||||
@@ -107,7 +120,7 @@ vim.api.nvim_create_user_command("Args", function(a) updateArgs(a.fargs) end,
|
|||||||
{ nargs = '*', desc = "Update run/debug arguments" })
|
{ nargs = '*', desc = "Update run/debug arguments" })
|
||||||
|
|
||||||
if dap_ok then
|
if dap_ok then
|
||||||
local lldb_init = { }
|
local lldb_init = {}
|
||||||
dap_configs = {
|
dap_configs = {
|
||||||
{
|
{
|
||||||
name = 'test all',
|
name = 'test all',
|
||||||
|
|||||||
@@ -8,7 +8,9 @@ use std::path::PathBuf;
|
|||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct Post {
|
pub struct Post {
|
||||||
pub name: String,
|
pub name: String,
|
||||||
|
#[allow(dead_code)]
|
||||||
pub filename: String,
|
pub filename: String,
|
||||||
|
#[allow(dead_code)]
|
||||||
pub markdown_content: String,
|
pub markdown_content: String,
|
||||||
pub html_content: String,
|
pub html_content: String,
|
||||||
pub created_at: DateTime<Utc>,
|
pub created_at: DateTime<Utc>,
|
||||||
|
|||||||
Reference in New Issue
Block a user