Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Developer Documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
brienne
Developer Documentation
Commits
a3491cd2
Commit
a3491cd2
authored
8 years ago
by
Michael McAndrew
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #37 from seanmadsen/master
Admonitions and other improvements to markdown documentation
parents
dfe8d8b4
57bca712
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+5
-13
5 additions, 13 deletions
README.md
docs/index.md
+0
-27
0 additions, 27 deletions
docs/index.md
docs/markdownrules.md
+48
-2
48 additions, 2 deletions
docs/markdownrules.md
mkdocs.yml
+2
-0
2 additions, 0 deletions
mkdocs.yml
with
55 additions
and
42 deletions
README.md
+
5
−
13
View file @
a3491cd2
# CiviCRM
d
eveloper
documentation
# CiviCRM
D
eveloper
Guide
```
bash
git clone https://github.com/civicrm/civicrm-dev-docs
cd
civicrm-dev-docs
mkdocs serve
```
-
[
Read published version
](
http://docs.civicrm.org/dev/en/master
)
-
[
Learn how to edit
](
https://docs.civicrm.org/dev/en/master/documentation/#how-to-edit
)
This will likely be merged with the
`civicrm-core`
repo at some point.
# See also
*
Download mkdocs: http://mkdocs.org/
*
Browse published dev docs: http://docs.civicrm.org/dev/en/master
*
Review general info about CiviCRM docs: https://github.com/civicrm/civicrm-docs
This Developer Guide will likely be merged into the
[
civicrm-core
](
https://github.com/civicrm/civicrm-core/
)
repo at some point.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docs/index.md
+
0
−
27
View file @
a3491cd2
...
...
@@ -32,30 +32,3 @@ to help out!
[
wiki
]:
http://wiki.civicrm.org/confluence/display/CRMDOC/Develop
[
migration
]:
https://wiki.civicrm.org/confluence/display/CRMDOC/Content+migration+from+wiki+to+Developer+Guide
## Other sources of information
As an open-source project, CiviCRM is managed by an international community of
developers and activists. Help from these people can be found in the following
ways:
-
Our
[
chat rooms
](
https://chat.civicrm.org/
)
and
[
mailing lists
](
http://lists.civicrm.org/lists/info/civicrm-dev
)
are great
places to say hello and discuss CiviCRM issues with others.
-
If you need help, your best bet is probably our
[
stack exchange Q+A site
](
http://civicrm.stackexchange.com/
)
.
-
If you've identified a problem, you can file issues on our
[
issue
](
http://issues.civicrm.org/
)
on our issue tracker or fix the issue
and submit a pull request on
[
Github
](
https://github.com/civicrm/civicrm-core/
)
.
-
If you've written an extension, please share it in our
[
extensions directory
](
https://civicrm.org
)
.
-
Use the
[
wiki
](
http://wiki.civicrm.org/confluence/display/CRM/CiviCRM+Wiki
)
to share drafts, notes, and specs.
-
And don't forget you are always welcome to come to a
[
real world event
](
https://civicrm.org/events
)
like a conference meet-up
or sprint.
This diff is collapsed.
Click to expand it.
docs/markdownrules.md
+
48
−
2
View file @
a3491cd2
...
...
@@ -32,10 +32,17 @@ platforms.
## Hyperlinks
-
A basic hyperlink
-
A basic hyperlink
(in a sentence)
Try [CiviCRM](https://civicrm.org) for your database.
-
An internal hyperlink on mkdocs (4 different ways that all work)
[extensions](/extensions/basics)
[extensions](/extensions/basics.md)
[extensions](extensions/basics)
[extensions](extensions/basics.md)
-
With long URLs, the following syntax is better.
See [this issue][CRM-19799] for more details.
...
...
@@ -85,7 +92,10 @@ This is a second.
#### Heading 4
```
Alternate syntax (only works for h1 and h2):
The above syntax is
[
called
](
http://pandoc.org/MANUAL.html#headers
)
"ATX style headers" in markdown terminology, and is preferred my most.
An alternate syntax called "setext style headers" works for h1 and h2 as
follows:
```
md
Heading 1
...
...
@@ -272,7 +282,43 @@ mkdocs**:
-
More list items
````
## Admonitions
### Types
!!! note
I am a "note" admonition.
!!! tip
I am a "tip" admonition.
!!! warning
I am a "warning" admonition.
!!! danger
I am a "danger" admonition.
Other types
-
"hint", "important" (visually identical to "tip")
-
"attention", "caution" (visually identical to "warning")
-
"error" (visually identical to "danger")
### Syntax
Simple example:
```
md
!!! note
This feature is only available as of CiviCRM 4.5.
```
Add a custom title (make sure to quote the title):
```
md
!!! danger "Don't try this at home!"
Stand back. I'm about to try science!
```
## Images
...
...
This diff is collapsed.
Click to expand it.
mkdocs.yml
+
2
−
0
View file @
a3491cd2
...
...
@@ -3,6 +3,8 @@ repo_url: https://github.com/civicrm/civicrm-dev-docs
site_description
:
A guide for CiviCRM developers.
site_author
:
The CiviCRM community
theme
:
readthedocs
markdown_extensions
:
-
markdown.extensions.admonition
pages
:
-
Home
:
index.md
-
Basics
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment