Coming soon... planetxamarin.com
Перейти к файлу
Javier Suárez Ruiz ea050f6c70 Merge remote-tracking branch 'refs/remotes/planetxamarin/master' 2018-03-15 19:42:48 +01:00
.github Update PULL_REQUEST_TEMPLATE.md 2018-02-25 23:40:01 +01:00
assets Added the Photoshop file for the profile card background (#104) 2017-01-18 17:43:02 +01:00
src Issue 443 (#444) 2018-03-12 12:46:16 +01:00
.gitattributes sourcedrop from readify.net 2016-11-17 09:48:57 +11:00
.gitignore Fixed some errors in the author data (#126) 2017-01-19 15:31:47 +01:00
CODE_OF_CONDUCT.md various changes (#15) 2017-01-16 14:01:35 +11:00
LICENSE sourcedrop from readify.net 2016-11-17 09:48:57 +11:00
README.md Update README.md (#432) 2018-02-15 19:12:51 +01:00
a.out hide description when bio is empty (#122) 2017-01-19 20:18:02 +11:00
appveyor.yml Unit tests (#425) 2018-02-09 18:17:00 +01:00
build.cake Unit tests (#425) 2018-02-09 18:17:00 +01:00
build.ps1 added ci 2017-01-16 13:17:05 +11:00
build.sh added weeklyxamarin (#56) 2017-01-17 16:06:45 +11:00
cake.config added ci 2017-01-16 13:17:05 +11:00

README.md

Welcome Build status

Hi! Welcome to PlanetXamarin.com!

If you write about Xamarin, you belong here. You're welcome to add your blog and have it aggregated as part of our feed as long as the content you are sharing does not violate the community code of conduct.

Add yourself as an author

Author Guidelines

  • I have a valid blog & RSS URL, both using HTTPS with a valid certificate
  • Host NO malicious or offensive content on the blog (including photos, swearing, etc.)
  • Blog is active with at least 3 Xamarin related blog posts in the last 6 months
  • If the blog has mixed content (Xamarin and Personal/Non-Xamarin blogs) a filter has been applied
  • If you delete your blog you will come delete your blog from Planet Xamarin
  • Your blog may be removed at any time if any of these are broken.

How to add

To add yourself as an author you can fork this project, add yourself to the authors folder as a class, implementing the IAmACommunityMember interface. If you are doing this via the GitHub editor, don't forget to add the class to the .csproj.

The result should look something like this:

public class BruceWayne : IAmACommunityMember
{
    public string FirstName => "Bruce";
    public string LastName => "Wayne";
    public string ShortBioOrTagLine => "potentially batman";
    public string StateOrRegion => "Gotham";
    public string EmailAddress => "rescueme@planetxamarin.com";
    public string TwitterHandle => "planetxamarin";
    public string GravatarHash => "42abc1337def";
    public string GitHubHandle => "planetxamarin";
    public GeoPosition Position => new GeoPosition(47.643417, -122.126083);
    public Uri WebSite => new Uri("https://planetxamarin.com/");
    public IEnumerable<Uri> FeedUris { get { yield return new Uri("https://planetxamarin.com/rss"); } }
    public FeedLanguageCode => "en";
}

A few things:

  • Name the class after your first and lastname with PascalCase
  • The FirstName and LastName property should resemble that same name
  • ShortBioOrTagLine property can be whatever you like. If you can't think of anything choose: 'software engineer' or 'software engineer at Microsoft'. Please keep it short, like a 140 character tweet.
  • StateOrRegion will be your geographical location, i.e.: Holland, New York, etc.
  • EmailAddress, TwitterHandle and GitHubHandle should be pretty clear, TwitterHandle without the leading @
  • Position is your latitude and longitude, this allows you to be placed on the map on the Authors page
  • The Website property can be your global website or whatever you want people to look at
  • With FeedUris you can supply one or more URIs which resemble your blogs. Your blogs should be provided in RSS (Atom) format and of course be about Xamarin.
  • And finally FeedLanguageCode specifies in what lanuage the majority of your content will be. This is used to be able to apply filters to the feed. This language code should be in ISO 639-1 format
  • If you do not want your e-mailaddress publicly available but you do want to show your Gravatar go to https://en.gravatar.com/site/check/ and get your hash! If you don't fill the hash, you will be viewed as a silhouette.

If you also do some blogging about other stuff, no worries! You're fine! Just have a look at the next section on how to filter out your Xamarin specific posts.

Just Xamarin please

Per default PlanetXamarin implements a default filter looking for Xamarin in the title and categories (tags) you have on your blog posts. This behavior can be modified by implementing IFilterMyBlogPosts, where you can implement your own filtering logic. It could be that you want to disable all filtering because your blog is solely about Xamarin. Maybe, you run a Xamarin newsletter or podcast.

public class BruceWayne : IAmACommunityMember, IFilterMyBlogPosts
{
    // ... Author properties from the above class, removed for brevity

    public bool Filter(SyndicationItem item)
    {
        // Here you filter out the given item by the criteria you want, i.e.
        // this filters out posts that do not have Xamarin in the title
        return item.Title.Text.ToLowerInvariant().Contains("xamarin");
        
        // This filters out only the posts that have the "xamarin" category
        // Not all blog posts have categories, please guard against this
        return item.Categories?.Any(c => c.Name.ToLowerInvariant().Equals("xamarin")) ?? false;
        
        // Of course you can make the checks as complicated as you want and combine some stuff
        return item.Title.Text.ToLowerInvariant().Contains("xamarin") && (item.Categories?.Any(c => c.Name.ToLowerInvariant().Equals("xamarin")) ?? false);
    }
}

A small step for an author...

A big step for mankind! Last thing that remains is submit a Pull Request to us and whenever it gets merged: hooray! You're an author now!

Don't forget to incorporate the Featured on Planet Xamarin badge on your blog and link back to us!

Featured on Planet Xamarin Badge

Enjoy all of our great content!

Of course you are more than welcome to submit other features and bugfixes as well.

Acknowledgements

  • Thanks to Readify for open sourcing their employee blog aggregation platform which we forked to create PlanetXamarin. Looking for your next challenge? Readify is hiring and offers relocation services for developers from abroad.
  • Thanks to our awesome contributors and our community of authors who make this all possible.