-
Notifications
You must be signed in to change notification settings - Fork 500
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
91 changed files
with
2,434 additions
and
1,373 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
============= | ||
Documentation | ||
============= | ||
|
||
Quick Fix | ||
----------- | ||
|
||
If you find a typo or a small error in the documentation you can easily fix it using GitHub. | ||
|
||
- Fork the repository | ||
- Go to [your GitHub username]/dataverse/doc/sphinx-guides/source and access the file you would like to fix | ||
- Click the Edit button in the upper-right corner and fix the error | ||
- Submit a pull request | ||
|
||
Other Changes (Sphinx) | ||
---------------------- | ||
|
||
The documentation for Dataverse was written using Sphinx (http://sphinx-doc.org/). | ||
If you are interested in suggesting changes or updates we recommend that you create | ||
the html files using Sphinx locally and the submit a pull request through GitHub. Here are the instructions on how to proceed: | ||
|
||
|
||
Installing Sphinx | ||
~~~~~~~~~~~~~~~~~ | ||
|
||
On a Mac: | ||
|
||
Download the sphinx zip file from http://sphinx-doc.org/install.html | ||
|
||
Unzip it somewhere. In the unzipped directory, do the following as | ||
root, (sudo -i): | ||
|
||
python setup.py build | ||
python setup.py install | ||
|
||
Alternative option (Mac/Unix/Windows): | ||
|
||
Unless you already have it, install pip (https://pip.pypa.io/en/latest/installing.html) | ||
|
||
run ``pip install sphinx`` in a terminal | ||
|
||
|
||
|
||
This is all you need. You should now be able to build HTML/pdf documentation from git sources locally. | ||
|
||
Using Sphinx | ||
~~~~~~~~~~~~ | ||
|
||
First, you will need to make a fork of the dataverse repository in GitHub. Then, you will need to make a clone of your fork so you can manipulate the files outside GitHub. | ||
|
||
To edit the existing documentation go to ~/dataverse/doc/sphinx-guides/source directory inside your clone. There, you will find the .rst files that correspond to the guides in the dataverse page (http://guides.dataverse.org/en/latest/user/index.html). Now, using your preferred text editor, open and edit these files, or create new .rst files and edit the others accordingly. | ||
|
||
Once you are done, open a terminal and change directories to ~/dataverse/doc/sphinx-guides . Then, run the following commands: | ||
|
||
- ``make clean`` | ||
|
||
- ``make html Makefile`` | ||
|
||
After sphinx is done processing the files you should notice that the html folder in ~/dataverse/doc/sphinx-guides/build directory has been updated. | ||
You can click on the files in the html folder to preview the changes. | ||
|
||
Now you can make a commit with the changes to your own fork in GitHub and submit a pull request to the dataverse repository. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Administration | ||
============== | ||
|
||
.. contents:: :local: | ||
|
||
User Administration | ||
------------------- | ||
|
||
Deleting an API token | ||
~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
If an API token is compromised it should be deleted. Users will be able to do this themselves once https://github.com/IQSS/dataverse/issues/1098 is complete but until then someone with access to the database must do it. | ||
|
||
Using the API token 7ae33670-be21-491d-a244-008149856437 as an example: | ||
|
||
``delete from apitoken where tokenstring = '7ae33670-be21-491d-a244-008149856437';`` | ||
|
||
You should expect the output ``DELETE 1`` after issuing the command above. | ||
|
||
After the API token has been deleted, users can generate a new one per :doc:`/user/account`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,4 @@ Contents: | |
installation-main | ||
r-rapache-tworavens | ||
shibboleth | ||
administration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.