Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
c33f3e28
Commit
c33f3e28
authored
Apr 28, 2016
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cppformat -> fmt
parent
59d0efd6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
doc/build.py
doc/build.py
+2
-2
doc/conf.py
doc/conf.py
+2
-2
fmt/format.h
fmt/format.h
+1
-1
support/release.py
support/release.py
+6
-6
No files found.
doc/build.py
View file @
c33f3e28
...
...
@@ -46,7 +46,7 @@ def build_docs(version='dev'):
except
DistributionNotFound
:
pass
# Install Sphinx and Breathe.
pip_install
(
'
cppformat
/sphinx'
,
pip_install
(
'
fmtlib
/sphinx'
,
'12dde8afdb0a7bb5576e2656692c3478c69d8cc3'
,
check_version
=
'1.4a0.dev-20151013'
)
pip_install
(
'michaeljones/breathe'
,
...
...
@@ -55,7 +55,7 @@ def build_docs(version='dev'):
cmd
=
[
'doxygen'
,
'-'
]
p
=
Popen
(
cmd
,
stdin
=
PIPE
)
p
.
communicate
(
input
=
r'''
PROJECT_NAME =
C++ Forma
t
PROJECT_NAME =
fm
t
GENERATE_LATEX = NO
GENERATE_MAN = NO
GENERATE_RTF = NO
...
...
doc/conf.py
View file @
c33f3e28
...
...
@@ -46,7 +46,7 @@ source_suffix = '.rst'
#master_doc = 'contents'
# General information about the project.
project
=
u'
C++ Forma
t'
project
=
u'
fm
t'
copyright
=
u'2012-2015, Victor Zverovich'
# The version info for the project you're documenting, acts as replacement for
...
...
@@ -198,7 +198,7 @@ latex_elements = {
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents
=
[
(
'index'
,
'format.tex'
,
u'
C++ Format D
ocumentation'
,
(
'index'
,
'format.tex'
,
u'
fmt d
ocumentation'
,
u'Victor Zverovich'
,
'manual'
),
]
...
...
fmt/format.h
View file @
c33f3e28
...
...
@@ -170,7 +170,7 @@ typedef __int64 intmax_t;
# endif
#endif
// Define FMT_USE_NOEXCEPT to make
C++ Forma
t use noexcept (C++11 feature).
// Define FMT_USE_NOEXCEPT to make
fm
t use noexcept (C++11 feature).
#ifndef FMT_USE_NOEXCEPT
# define FMT_USE_NOEXCEPT 0
#endif
...
...
support/release.py
View file @
c33f3e28
...
...
@@ -138,7 +138,7 @@ if __name__ == '__main__':
run
=
Runner
()
fmt_dir
=
os
.
path
.
join
(
workdir
,
'fmt'
)
branch
=
args
.
get
(
'<branch>'
,
'master'
)
run
(
'git'
,
'clone'
,
'-b'
,
branch
,
'git@github.com:
cppformat/cppforma
t.git'
,
fmt_dir
)
run
(
'git'
,
'clone'
,
'-b'
,
branch
,
'git@github.com:
fmtlib/fm
t.git'
,
fmt_dir
)
# Convert changelog from RST to GitHub-flavored Markdown and get the version.
changelog
=
'ChangeLog.rst'
...
...
@@ -170,8 +170,8 @@ if __name__ == '__main__':
# Build the docs and package.
run
(
'cmake'
,
'.'
)
run
(
'make'
,
'doc'
,
'package_source'
)
site_dir
=
os
.
path
.
join
(
workdir
,
'
cppformat
.github.io'
)
run
(
'git'
,
'clone'
,
'git@github.com:
cppformat/cppformat
.github.io.git'
,
site_dir
)
site_dir
=
os
.
path
.
join
(
workdir
,
'
fmtlib
.github.io'
)
run
(
'git'
,
'clone'
,
'git@github.com:
fmtlib/fmtlib
.github.io.git'
,
site_dir
)
doc_dir
=
os
.
path
.
join
(
site_dir
,
version
)
shutil
.
copytree
(
os
.
path
.
join
(
fmt_dir
,
'doc'
,
'html'
),
doc_dir
,
ignore
=
shutil
.
ignore_patterns
(
'.doctrees'
,
'.buildinfo'
))
...
...
@@ -181,10 +181,10 @@ if __name__ == '__main__':
# Create a release on GitHub.
run
(
'git'
,
'push'
,
'origin'
,
'release'
,
cwd
=
fmt_dir
)
r
=
requests
.
post
(
'https://api.github.com/repos/
cppformat/cppforma
t/releases'
,
params
=
{
'access_token'
:
os
.
getenv
(
'
CPPFORMA
T_TOKEN'
)},
r
=
requests
.
post
(
'https://api.github.com/repos/
fmtlib/fm
t/releases'
,
params
=
{
'access_token'
:
os
.
getenv
(
'
FM
T_TOKEN'
)},
data
=
json
.
dumps
({
'tag_name'
:
version
,
'target_commitish'
:
'release'
,
'body'
:
changes
,
'draft'
:
True
}))
'body'
:
changes
,
'draft'
:
True
}))
if
r
.
status_code
!=
201
:
raise
Exception
(
'Failed to create a release '
+
str
(
r
))
finally
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment