Comments (9)
@wsmelton struck gold. The parser shortcircuits around PS C:\>
...
We can pass to the "better renderer" with the only culprit of needing/adding PS C:\>
to whatever multiline example we have. Single lines one won't need it, but if they are there then no problem at all.
If @potatoqualitee is also willing to go this route, I'll gladly add the new snippet.
from docs.
don't know what "contractions" are but if you mean differencing "code" vs "the explanation of what happens when that line of code runs" I don't think so.
PS doesn't differentiate. We could do so that "the very first line is code, everything else is the explanation" but it's not a deterministic way to detect, it's just a "made up convention" we'd need to adhere to.
BTW: a better detection could be example lines starting with PS C:\>
that seems consistent. Again, this is just convention.
from docs.
Contractions = don't == do not
or won't == will not
😉
from docs.
@potatoqualitee the fix for this is contractions should not be used in CBH.
from docs.
from docs.
see #8 , that would coincidentally fix this, as the contractions won't (pun intended) be treated within the code block.
from docs.
Well the example on there for Get-DbaBackupInformation
has the code formatted with line breaks on the piping symbol. In that particular case it needs to be all one line to show that ability. I don't see us being able to make every example just one line though simply due to the complexity on some of the commands. (Primary example of this is the Invoke-DbaLogShipping
command:
If we go with the method used in main PS examples and start each "new line of code" with the PS C:\>
, could we then parse it differently for the index?
from docs.
from docs.
closed with the new "rendering engine"
from docs.
Related Issues (20)
- Copy-DbaDbTableData hangs SELECT query when script is 'cancelled' in Powershell ISE HOT 1
- DataMasking category issue on page https://dbatools.io/commands/ HOT 1
- Test-DbaDiskAlignment isn't rendering HOT 5
- New-DbaDatabase Example 5 formatting
- Top bar nav HOT 4
- Issue with Piping Get-DBADatabase to Backup-DBADatabase and using -ReplaceInName HOT 1
- Claudio's name requires unicode and messes up on the website HOT 9
- Import-DbaCsv ParseErrorAction HOT 1
- Select-DbaObject documentation corrupted HOT 4
- Docs are out of date HOT 2
- Documentation Sidebar Links Href Incorrect HOT 20
- Set-DbaDbCompatibility does not Support SQL Server 2022 "Version160" yet HOT 1
- FQDN needed on instances with SSL/TLS HOT 1
- GitHub links are broken HOT 1
- Copy-DbaLinkedServer error on SQL 2019 HOT 1
- SQL 2022 support
- Add-DbaAgDatabase example 5 spills out of code block HOT 3
- Find-DbaInstance -ScanType formatted incorrectly, missing each ScanType like seen in the help HOT 1
- New-DbaReplCreationScriptOptions - Examples show line break tags HOT 3
- New-DbaAgentAlert not showing in the list of commands HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.